Throw the book at someone
To throw the book at someone is to punish or prosecute someone to the fullest extent and is originally American and dates from c. 1930. The book referred to is imaginary and means the sum of all criminal charges and dates from the 1920s.