If he's yelling, yell at him: STOP YELLING! IT'S NOT NICE TO YELL.

Tell him never to talk to strangers because it's dangerous, but then tell him he is rude when he won't say hello back to the cashier at the grocery store.

Tell him he should never let anyone touch him if he doesn't feel comfortable, but then don't intervene when his aunt, who he sees once a year, hugs him against his will.

Tell him you can't afford to buy him the one-dollar candy bar he wants, as you are buying yourself a five-dollar cup of coffee.

Tell him he has to share his favorite toy with his sister, but then later when he wants to play with your iPhone, don't let him.

If he has just hit his sister, tell him it's not nice to hit someone, then grab him and hit him.

Tell him he's not allowed to quit doing that thing he hates, because it's important to be persistent and determined, but then tell him to quit asking for that thing he wants because it's annoying how persistent he is.

Tell him not to eat now (when he's hungry) because if he does, he won't be hungry later (when the clock says it's time for dinner).

Tell him you can't do that thing he wants you to do for him because you are in the middle of writing an email, but then get really upset when he tells you he can't do something for you because he's in the middle of playing a video game.