Where in the Bible are we told in one verse not to do a thing and in the next to do it?

‘Answer not a fool according to his folly, lest thou also be like unto him.’ Prov. xxvi. 4.

‘Answer a fool according to his folly, lest he be wise in his own conceit.’ Prov. xxvi. 5.