If you pull someone up for behaving inappropriately, and they do nothing to stop, how should you react?

Just simple things like:

-if someone pushes in front of you in a queue, and you tell them to move but refuse?

-If someone is speaking loudly in a library, and you tell them to lower their voice but the refuse?

Stupid examples but you get the point, how do you respond in such a situation?