One who is open to criticism should not criticize others, as in
It's stupid of Mike to mention his opponent's accepting donations from lobbyists-people who live in glass houses! This proverb is so well known that it is often shortened. [Late 1300s] Also see
pot calling the kettle black.