Read the Riot Act

What does the idiom “read the Riot Act” mean?

Definition: scold severely

Example: Wow, my mom read me the riot act after she caught me staying out until 3 last night.

Note: In England, in the early 18th century, there was a Riot Act warning against mass assemblies that was read publicly.