The only thing “illegal”, ostensibly, was “unsafe” operation, but I think he will try to show that what he did was NOT demonstrably (or actually) unsafe.
The problem with all such laws is that what looks unsafe to one person, say a cop, may be perfectly acceptable to someone with experience. It thus becomes more a matter of opinion than of fact.