Here is the text I referred to above:
Ecclesiastes 7:15-17 (New International Version)
New International Version (NIV)
Copyright © 1973, 1978, 1984 by International Bible Society
[NIV at IBS] [International Bible Society] [NIV at Zondervan] [Zondervan]
15 In this meaningless life of mine I have seen both of these:
a righteous man perishing in his righteousness,
and a wicked man living long in his wickedness.
16 Do not be overrighteous,
neither be overwise—
why destroy yourself?
17 Do not be overwicked,
and do not be a fool—
why die before your time?