in English it is a general term saying you will punish someone strongly if they do the wrong thing. "Throwing the book" = strongly enforcing rules.
If he keeps coming to work late, his boss is going to throw the book at him.
You have been fined for speeding three times. If the police catch you again, they are really going to throw the book at you.