There is a solution to this, as long as the king says he ordered her to give him the book. Then she would be scott free because she isnt interfering with his education, only following orders.
The other way around is simply claim she bought the book for her maid, not for him. They cant prove he has been reading it.