Wiktionary
throw the book at
vb. 1 (context transitive idiomatic informal English) To charge with or convict of as many crimes as possible. 2 (context transitive idiomatic informal English) To apply the harshest possible punishment to.
Usage examples of "throw the book at".
If the police catch you near another dealer they'll throw the book at you.
I'll have your ass in front of a judge so fucking fast they'll throw the book at you!
If it looks like she's in real trouble, you know, like they're gonna throw the book at her--why, we get her a lawyer--under the table, you know.
Canidy knew Berry to be the sort of sonofabitch who would joyously throw the book at the thief.
If I may use slang I would say that his Lordship is going to throw the book at you.