
While it is not okay to treat people differently because of how they are dressed or how they look, it is perfectly okay to assume that they are of a group because of how they look.
It is left for you to confirm your suspicions before you act or not act at all.