Proverbs 26 has this seemingly contradictory pair of admonitions, back to back:
Answer not a fool according to his folly,lest you be like him yourself.Answer a fool according to his folly,lest he be wise in his own eyes.
He who loves purity of heart,and whose speech is gracious, will have the king as his friend.The eyes of the LORD keep watch over knowledge,but he overthrows the words of the traitor.Make no friendship with a man given to anger,nor go with a wrathful man,lest you learn his waysand entangle yourself in a snare.A word fitly ...