If the book is about how to build a nuke in your garage or make and set an IED using stuff you'd buy at local stores, yeah. Etc.
There must be, imo, a genuine risk of significant harm to others as well as oneself, in my view. But criteria do exist for making such a choice.
Books about Rosa Parks, or two gay penguins raising a baby don't make that grade.