Jesus said, “He that is without sin among you, let him first cast a stone at her.” (John 8:1-8) Passing judgment is something most of us do in our everyday lives. We must be careful, though, how we do it, for if we simply judge others with no good cause, we may suffer unexpected consequences. (Matt 7:1-5) We should judge unrighteous deeds instead of unrighteous doers and pray for those who do unholy things.
But we do still need to judge for ourselves what is holy and what is unholy, based on the Word, so that we, ourselves, might be righteous. (Rom 1:8-32)
The Bible has numerous passages cautioning us about judgement. I have listed a few more below, which, I think, are rather self-explanatory, once studied with the Spirit of God at the center of our lives.