(Reuters) - Shares of Tesla Inc TSLA.O fell 7 percent on Friday, as David Einhorn's hedge fund Greenlight Capital slammed the electric carmaker the day after Tesla CEO Elon Musk mocked the U.S. Securities and Exchange Commission on Twitter.

The sell-off started in morning trading the day after Musk stirred nerves about a settlement of his securities fraud lawsuit by calling the SEC the “Shortseller Enrichment Commission” on Twitter. His tweet came hours after a federal judge ordered him and the regulator to justify their settlement.

“Just want to (sic) that the Shortseller Enrichment Commission is doing incredible work,” Musk, a frequent critic of investors betting against the electric car company said in the tweet. “And the name change is so on point!”

In its quarterly letter, Greenlight said on Friday its short position on Tesla was its second-biggest winner in the third quarter. The hedge fund said Musk has been deceptive and the carmaker’s woes resemble those of Lehman Brothers before its collapse.

Tesla shares plunged last week after the SEC accused Musk, 47, of fraud over “false and misleading” tweets on Aug. 7 that promised to take Tesla private and said funding had been secured.

The lawsuit threatened Tesla and Musk with a long fight that could have undermined the company’s operations and ability to raise capital.

In the settlement announced over the weekend, Tesla and Musk agreed to pay $20 million each to the regulator while Musk, also a large Tesla shareholder, would step down as chairman but continue as CEO.

FILE PHOTO: A Tesla showroom is seen in Santa Monica, California, U.S., January 4, 2018. REUTERS/Lucy Nicholson/File Photo

The settlement provided for appointment of a new chairman and directors, as well as moves to oversee Musk’s output on social media.

Peter Haveles, a partner in the Trial and Dispute Resolution Practice Group, said Musk’s tweets showed his lack of self discipline and puts intense pressure on Tesla board.

Several Twitter users also criticized Musk, who has over 20 million followers on the social media platform, for his tweets targeting regulators and short sellers.

“I have lost 30 years of my life savings all in $tsla thanks to your tweets please stop,” TrendTrader007 wrote.

“If you continue this self destructive path you will lose all your ardent supporters and the goodwill from diehard $tsla longs like me,” the user tweeted.

Teresa Goody, a former SEC attorney and CEO of The Goody Group, said Musk’s “contempt for the SEC is sending a message that he has no regard for the securities laws that are intended to protect investors and ensure a fair and efficient marketplace.”

In a separate tweet, Musk took another shot at shortsellers and accused BlackRock Inc BLK.N of enabling them by saying, "The big funds can & will (sic), as they're suffering a net loss. Index managers like Blackrock pocket (sic) make excessive profit from short lending while pretending to charge low rates for 'passive' index tracking."

Widely seen as the driving force behind the company, Musk's talent for promotion has helped Tesla vault much bigger manufacturing operations like General Motors GM.N and Ford F.N to become America's most valuable car company.

As news on the settlement emerged at the weekend, he told employees in an email that Palo Alto, California-based Tesla was “very close to achieving profitability.”

Production numbers on Tuesday showed the company finally meeting its promises on output of the Model 3 sedan seen as crucial for the its long-term prospects, while also fighting hard to overcome logistical issues with deliveries.

Shares of the company, down around 14 percent this year but still up almost 30 percent since the start of 2017, were last down 6.9 percent at $262.63.