Musk tried to bail on his takeover of the company. The company said Friday that it was prepared to take legal action against Musk after he decided to end the deal. In a new filing with the SEC, the social media company called Musk's actions "invalid and wrongful".

Musk and his lawyers accused the company of making false and misleading statements about its platform. They said that the number of bots could be higher than what they said.

Lawyers for the social networking site have responded. In a letter to Musk's attorneys, the social media company denied that it had changed its mind. It goes on to say that Musk has violated the agreement. The clause that prohibits Musk from making negative comments about the company or its employees is cited.

It's the latest sign that the company is preparing for a legal battle with Musk. The board of the company, which is facing a multi-billion dollar hit to its share price since the saga with Musk began, will be taking Musk to court in order to force him to comply with the deal. A law firm has been hired by the company. It's not clear if a legal battle will result in Musk owning a social networking site.