In Tesla's case, the laws were created specifically to block them. They didn't exist when Tesla started. The previous laws on the books were more along the lines of "if you have dealers, you can't sell direct" rather than a general "you must sell through dealers"