We use “judge” in two different ways. On the one hand, we use it to mean “condemn” or “criticize.” For example, when one of your friends says they don’t want your judgment, this is the meaning they have in mind. On the other hand, we use it to mean “evaluate” or “interpret.” If someone tells you to judge the situation before speaking, this is the meaning they (probably) have in mind.
Jesus tells his disciples not to criticize others and warns them that if they do, they will be held to the same standard as those they criticize. The point is not to have a critical attitude toward others, for if you do, it causes you to overlook your own failings. We simply have no authority to judge others. Love everyone, and leave judgment to God.