In chapter 1, Paul carefully and concisely made it clear that all men are without excuse in their failure to glorify God. The self-righteous Jews would have been quick to agree, indicting the pagan for the very sin of which they themselves were guilty. That is why, after dealing with the unrighteousness of the heathen in chapter 1, Paul deals with the self-righteousness of the hypocrite in chapter 2.
"You who judge the pagan nature and homosexual culture," said Paul, "you who are bitter and angry about someone else's sin are also guilty."
Does this mean my condemnation of another is an indication that I am guilty? Yes. The Greek word krino, translated "judge," means to judge to condemnation. In other words, it speaks of judging with a sneer on one's face and a finger angrily pointed at him, or her, or them. That kind of judgment is wrong because, although it might appear in a different form, the same sort of sin is going on within us whenever we judge condemningly.
Now, while we are not to make judgments in condemnation, we are to judge for identification. Jesus said, "By their fruits you'll know them" (see Mat 7:16), and "Beware of wolves in sheep's clothing" (see Mat 7:15). For example, if a guy came to take my daughter out and he arrived in a pickup truck with beer cans rolling around in the back, a cigarette dangling from his mouth, and a Playboy magazine rolled up in his back pocket, I would be justified to judge for identification and to keep her home. Although there's a fine line between condemnation and identification, we inherently know the difference between identifying something that is wrong and self-righteously condemning someone with hostility.