A high school English teacher of mine offered a variation of that to the class one day: "A wise person is one who knows what he knows, and knows what he doesn't know."
Someone who really learns to apply that can just about always avoid making of fool of him or herself, or damaging their credibility in all sorts of situations.