I think "Do not ever do X in front of my child" is something of a trump card in these kinds of situations. My FIL was visiting a few weeks ago and made an off-hand joke about spanking my kid for whatever. I gave him a hard look and said "You pop him, and I'll pop you." The end.