Proverbs 26:4-5

4 Don't answer a fool according to his folly,  Lest you also be like him.

5 Answer a fool according to his folly,  Lest he be wise in his own eyes.