We are not supposed to judge. That's Gods job.
According to scripture, God's job is to judge a soul as being worthy of entering the kingdom of heaven. We may not do that. As far as doing the other kind of judging, I do it all the time and proudly. So does everyone, including those who rebuke people for being judgmental.
All I can say that I think a large part of the problems is that too many people have decided to hate because of their religious beliefs.
I think it's the other way around; I think people use/distort religious teaching to lend weight to their prejudices.