Well you can tell me off because that would have been me. And yes, I am a hypocrite because I'd be mad if someone did that to my child.
So if you are ever tempted to be that person remind yourself that you aren't going to help matters and BITE YOUR TONGUE OFF if you have to.
Saying something like that in that situation is just the grown-up form of throwing a tantrum. Tantrums are okay in 3 year olds not in adults.