Whoever corrects a scoffer gets shame for himself, and whoever reproves a wicked man gets himself hurt.
In context
5“Come, eat of my bread, and drink of the wine I have mixed. 6Leave the simple behind and live; walk in the way of understanding.” 7Whoever corrects a scoffer gets shame for himself, and whoever reproves a wicked man gets himself hurt. 8Do not reprove a scoffer, or he will hate you; reprove a wise man, and he will love you. 9Give to the wise, and they will be wiser still; teach the righteous, and they will add to their learning.