Does that law make any sense other than to protect the jobs of the dealers?
e.g. why on Earth would anyone hate the existence of physical Apple stores, for example? (which fits the description of "a manufacturer vertically integrating all the way from building [PC's] to running stores.")
Tesla has never had a dealership network, so I don't see why this should apply to them. But that is why these laws came to exist.