read someone the riot act
📖 generalMeaning
to give someone a stern warning or reprimand for their behavior
Literal Meaning
to read someone the legal consequences of their actions aloud
Example
“The teacher read the students the riot act after they were caught cheating on the exam.”