In the bible, Jesus criticized a pharisee who prayed about how he was so devoted to God and how that devotion made him better then the non believers and Jesus’ response to the pharisee is that the pharisee would not receive any rewards for his religious behaviour because he lacked humility and respect for other human beings.
If a non threatening and non violent person can lose out on their reward for viewing themselves as better than others, how much more a judgmental, exclusive and hateful person can lose out on their reward for thinking they are better then others!
My response to this verse verse at a bible study I attended was that it’s possible to be humble before God but still arrogant before human beings. This does not mean you pretend that evil people are good or that a bad person is just as good as a good one. It simply means you acknowledge that the needs, purposes and efforts of other people’s lives are equal in importance to the needs, purposes and efforts of your own life.
You also account for your own margin of human error and acknowledge that your evaluation and understanding of others may be flawed or limited, so as not to impose your judgement on people as the absolute and flawless will of God.