As a person, I do not think it was wrong to judge others based on their appearance. It was a good precaution to avoid problems and undesirable situations. As long as you do not overthink things and only think negatively, and you show the least amount of respect to others.