Get out of line

To disobey or ignore the rules of something.

The children were getting out of line when the teacher returned.