If a man is known as a fool, the father and mother has no pleasure in him . The next is a merry heart is like medicine but a broken spirit dries the bones. David said in Psalm 32 that his bones seemed to dry up when he did not come to God with his sins.
There are two words known throughout the Bible in both Old & New Testaments. These are wisdom and understanding. They seem to go together. If I am wise I will also seek to understand people.
What does it mean to punish the just? I will say there is plenty of that in many places in our world today. I would not like to live as a Christian in much of the world today.
The last thought is that you are thought to be wise when you don't talk so much. Someone who doesn't talk so much is thought by others to be a man of understanding.