I disagree, you have the right to set your user-agent to anything you’d like, or nothing at all.
Fraud, defamation, perjury, and obstruction of justice are illegal. That's a much narrower restriction than a ban on lies.
There is, however, an explicitly enumerated right to freedom of speech. There are only a handful of recognized categories of non-protected speech. Lying isn't one of them.
Google Crawlers and User Agent Strings – 2023 List
https://www.stanventures.com/blog/googlebot-user-agent-strin...
This is the important part.