Tesla CEO Elon Musk railed against what he called "fascist" social distancing measures on an earnings call Wednesday. In an expletive-laden rant, Musk warned that shelter-in-place orders in California, where a major Tesla factory is located, also pose a "serious risk" to the company.

"If somebody wants to stay in their house, that's great," Musk said, according to a recording of the call reviewed by CBS News. "They can stay in their house and they should not be compelled to leave. But to say that they cannot leave their house and they will be arrested if they do, this is fascist. This is not democratic, this is not freedom. Give people back their g**d*** freedom."

No state has implemented an order forbidding residents from leaving their homes, although many have ordered residents to only leave for essential purposes.

Get Breaking News Delivered to Your Inbox

An order in the six-county San Francisco Bay Area forced Tesla to close one of its plants, starting March 23, to help prevent the virus' spread. That order was later extended until the end of May. Public health experts say the orders have reduced the number of new coronavirus cases nationwide.

Elon Musk seen March 9, 2020. Getty

"We are a little bit worried about not being able to resume production in the Bay Area and that should be identified as a serious risk," Musk said. "We only have two car factories right now, one in Shanghai and one in the Bay Area."

"The extension of the shelter-in-place or frankly what I would call it, forcibly imprisoning people in their homes against all their constitutional rights ... my opinion ... and breaking people's freedom in ways that are horrible and wrong and not why people came to America or built this country," Musk added. "What the f***. Excuse me. Outrage. So it will cause great harm, not just to Telsa, but many companies. And while Tesla will weather the storm there are many small companies that will not."

The stay-home order may force Tesla to dial back its production forecast by more than 500,000 vehicles in 2020. The company didn't give a new estimate and said it's unclear how fast parts makers can resume production.

Revenue for the quarter was up 32% to $5.55 billion. Tesla did not immediately respond to CBS News' request for comment.