You can know that you are judging illegitimately when your standard rests outside of Scripture, such as judging motives. Clearly, judging the motives of another places you outside the parameters of legitimate judging.
Important reminder for me.... and you?