Well, as long as you don't steal anything or assault the cashier you haven't done anything illegal (even if the police is called).
You're example fails.