Ecclesiastes 7:16-17

7:16 So do not be excessively righteous or excessively wise;

otherwise you might be disappointed.

7:17 Do not be excessively wicked and do not be a fool;

otherwise you might die before your time.

Ecclesiastes 7:21

7:21 Also, do not pay attention to everything that people say;

otherwise, you might even hear your servant cursing you.