If we’re going to judge other people within the church (and this is mentioned in 1 Corinthians 5), we ought to judge on the basis of truth and love instead of the overflow of our own judgmental nature. Because it’s so easy to fall into the trap of merely judging other people without examining our own lives, we ought to constantly live in the prayer of “God, be merciful to me, a sinner!” (Luke 18:13). Judging is not wrong, and it can, at times, be beneficial; knowing when to judge, however, is a matter of prayer and care for another person instead of an opportunity to shame and condemn.
Source: Who Am I to Judge? – Discover