I'm very explicit about telling my kid exactly that. I point out his behavior, I point out how I sometimes do almost exactly that, what's bad about it, and I remind him that just because I do something doesn't make it right.
Because I'm not setting switches on my son module, I'm trying to influence a human being toward a good direction, despite my failings.
I think it's working.