I didn't judge you sir, the word of God did.
Joh 12:48 He that rejecteth me, and receiveth not my words, hath one that judgeth him: the word that I have spoken, the same shall judge him in the last day.
We are not commanded to not judge others, but to not be a HYPOCRITE while judging.
For example, if I tell you that you should do to others as you would have them do to you but fail to do the same myself, THEN God will see me as a hypocrite and judge me according to the measure I used to judge you. But if I live or practice the same as what I told you to do, then I have not sinned and God will not judge me.
God's Righteous Judgment
Rom 2:1 Therefore thou art inexcusable, O man, whosoever thou art that judgest: for wherein thou judgest another, thou condemnest thyself; for thou that judgest doest the same things.
Rom 2:2 But we are sure that the judgment of God is according to truth against them which commit such things.
Rom 2:3 And thinkest thou this, O man, that judgest them which do such things, and doest the same, that thou shalt escape the judgment of God?
Rom 2:4 Or despisest thou the riches of his goodness and forbearance and longsuffering; not knowing that the goodness of God leadeth thee to repentance?
Rom 2:5 But after thy hardness and impenitent heart treasurest up unto thyself wrath against the day of wrath and revelation of the righteous judgment of God;
Rom 2:6 Who will render to every man according to his deeds:
Rom 2:7 To them who by patient continuance in well doing seek for glory and honour and immortality, eternal life:
Rom 2:8 But unto them that are contentious, and do not obey the truth, but obey unrighteousness, indignation and wrath,
Rom 2:9 Tribulation and anguish, upon every soul of man that doeth evil, of the Jew first, and also of the Gentile;
Rom 2:10 But glory, honour, and peace, to every man that worketh good, to the Jew first, and also to the Gentile:
Rom 2:11 For there is no respect of persons with God.