The verse “thou shalt not judge” is not an ending. It continues on with “lest ye be judged”. It doesn’t say “don’t condemn immoral behavior”. It means “don’t be a hypocrite.”
If you are honest, you can call out liars. If you are loyal to your partner, you can criticize and condemn an adulterer. But don’t cheat on your wife only to criticize a man with a mistress.
The line has also been taken up by many liberal Christians (and liberals in general) to shut down Christians who condemn their activities. They reply to criticism of immorality with “God says don’t judge!” Actually, God and Christians should judge. It doesn’t mean don’t call out murderers, thieves, rapists and liars. It means don’t call them out and punish them harshly for what you yourself do.
The misinterpretation is promoted by the liberal media and political establishment to shut down any condemnation of their evils.
You said that so well...excellent...