Can’t you see that the quote “don’t criticize others” itself is “criticizing others”?
Such are the contradictions of those who live by such self-contradictory teachings of men.
God, on the other hand, taught Truth that:
(1) If you want to avoid being judged, don’t judge others (though what the “others” do is “sinful” but you skip the judging part to be easier on you – if you can’t bear the same judgment back):
“Do not judge, or you too will be judged. For in the same way you judge others, you will be judged, and with the measure you use, it will be measured to you.” – Lord Jesus Christ (Matthew 7:1 – 2)
(2) But of you do want to judge others, make sure it’s pitch-perfect (that is, the “righteous judgment”):
“Stop judging according to outward appearances; rather judge according to righteous judgment.” (John 7:24)
We are taught to “Follow Jesus”.
The Lord judged the Pharisees & Sadducees (religious leaders) for their hypocrisy (teaching self-contradictory & false things which they themselves can’t live by) as well as pointed out “sins” which are to be avoided (not approving “sins” as acceptable).
Thus, being His “followers of the Way” (as was called in earlier times), we ought to do “likewise”.
Don’t be deceived by “fake quotes”.