That really depends on the remark the offender made.
For example if it is about my ignorance about one subject or the other, I would retort with something like: "That is true, but at least I don't make the mistake of ... [allusion to the offender's actions, without even naming him / her]."
They then know they need to stop.

