I don’t think it was racist I think even if it were Dustin, Billy would say stay away from him
Billy didn’t care for people in general besides his strange relationship with Karen
I think he knew before he saw her interacting with Lucas so which is why he told her to stay away
Plus I think Billy just didn’t want Max to have any friends