This is factually false.
There's ample documentation of crawlers straight-up ignoring robots.txt.
It's not a legal control, but a technical one - and a voluntary one, which means that it's trivial to ignore.
And there's obviously nowhere to put a robots.txt for a book that you've published.