Most bots operate in the gray area of just getting the view count up and not messing with the ads. They can operate publicly and not have law enforcement raid their offices.
Yt definitely makes an effort to prevent that. You can read up on how botguard's virtual machine works in some older writeups.