I love that people seldom finish the quote. It goes “Do not judge lest you be judged. For in the way you judge, you will be judged; and by your standard of measure, it will be measured to you.”
If your life is in order, use judgement to correct others. However, if you’re doing the same thing, don’t be a hypocrite.