Ecclesiastes 7:15-25

15 All this have I seen in my days of vanity: there is a righteous man who perishes in his righteousness, and there is a wicked man who lives long in his evil-doing.
16 Don't be overly righteous, neither make yourself overly wise. Why should you destroy yourself?
17 Don't be too wicked, neither be foolish. Why should you die before your time?
18 It is good that you should take hold of this. Yes, also from that don't withdraw your hand; for he who fears God will come forth from them all.
19 Wisdom is a strength to the wise man more than ten rulers who are in a city.
20 Surely there is not a righteous man on eretz, who does good and doesn't sin.
21 Also don't take heed to all words that are spoken, lest you hear your servant curse you;
22 for often your own heart knows that you yourself have likewise cursed others.
23 All this have I proved in wisdom. I said, "I will be wise;" but it was far from me.
24 That which is, is far off and exceedingly deep. Who can find it out?
25 I turned around, and my heart sought to know and to search out, and to seek wisdom and the scheme of things, and to know that wickedness is stupidity, and that foolishness is madness.
The Hebrew Names Version is in the public domain.