What does Matthew 7 1.2 mean?

Jesus told us not to criticize others, but to check our own motives and morality. We often want to get rid of other people's bad habits. In fact, we have the same bad habits. Jesus said,' Don't judge others'. What he opposed was that hypocritical and judgmental attitude-raising oneself and belittling others. But he didn't generally oppose all critical thinking, only said that we should use love to distinguish, forgive and help people around us.