Give people the benefit of the doubt and assume the best. Fundamental attribution error – we are usually quick to assume the person is the problem, not their situation. But it is usually their situation or circumstance that causes people to act badly. Maybe they’re having a bad day, maybe they lost someone or maybe they aren’t happy for some reason. Chances are, something is going wrong in their life and they are just taking it out on you. So it’s not about you and nothing to take personally or let drag you down.
But don’t be naïve. There are bad people out there. In general, however, most people are good and there are many more good people than bad people. After all, how can we have a society like this if most people aren’t good??