Riot act has 2 different meanings across 1 category:
Noun
a vigorous reprimand
"I read him the riot act"
a former English law requiring mobs to disperse after a magistrate reads the law to them