This passage (Matthew 7:1-5) is often taken out of context to forbid all moral evaluation, as if Jesus were a relativist. But Jesus had something else in mind: a clear-sighted self-evaluation and a proper evaluation of others based on objective standards. Therefore, when one judges others, one is implicitly bringing oneself under the same judgment. One will be measured by the same measurement one employs….
If one fails to evaluate oneself by one’s own standard, one cannot rightly discern the moral status of others. In other words, proper moral evaluation requires a knowledge of the self, and allows no special pleading.
— Douglas Groothuis, from On Jesus, p. 58