He could have gotten around it by writing a book, and offering the book for sale on his site, and included an offer for free diet consulting if you bought the book.
If you read the article though, you’ll see that the state didn’t limit itself to that. It actually said that he shouldn’t give advice to even family and friends.