The restriction of not allowing Tesla to enter Iowa and sell its product is the issue. Taking your reasoning to its logical conclusion, any product that entered Iowa wouldn't represent interstate commerce because it then needs to be sold in Iowa.
So, the federal government says that I can drive my bananas over the border. However, when I get there, I can't sell them. That would defeat the purpose of the commerce clause.