You shall appoint for yourself judges and officers in all your towns which the LORD your God is giving you, according to your tribes, and they shall judge the people with righteous judgment
(Obviously not the simple understanding of the verses, but…) the verse is telling man how to relate to himself as opposed to others. “Appoint for yourself judges and officers”- when it comes to criticizing character flaws or actions, concentrate solely on yourself. If it helps you- be guilty in your own eyes and always strive to improve.
However, when it comes to everyone else- give them the benefit of the doubt. …”judge the people with righteousness”; judge others favorably and do not try to look for their faults, only their strong points. (R’ Yaakov of Lublin)