A man shall be commended according to his wisdom: but he that is of a perverse heart shall be despised.
– Proverbs 12:8
The word for wisdom means intelligence or good sense. It indicates clear thinking as opposed to the perverse, or crooked, mind. Wisdom here sees things as they are and makes prudent assessments. Wisdom is therefore commended or celebrated. Perverse thinking fails in analyzing reality and the resulting counsels are wrong. So they are despised, or held in contempt.