Read the riot act

To chastise loudly, or to issue a severe warning. In England, unruly crowds that did not disperse after the Riot Act was read to them became subject to the force of the law.