“judge not” is a warning to hypocrites !
Matthew 7:1-5 Judge not, that ye be not judged. For with what judgment ye judge, ye shall be judged: and with what measure ye mete, it shall be measured to you again. And why beholdest thou the mote that is in thy brother’s eye, but considerest not the beam that is in thine own eye? Or how wilt thou say to thy brother, Let me pull out the mote out of thine eye; and, behold, a beam is in thine own eye? Thou hypocrite, first cast out the beam out of thine own eye; and then shalt thou see clearly to cast out the mote out of thy brother’s eye.
John 7:24 Judge not according to the appearance, but judge righteous judgment.
1 Corinthians 2:15 But he that is spiritual judgeth all things, yet he himself is judged of no man.