Disputes like this often end in a negotiated settlement between the two parties, with jail not an issue.
My best guess is Elon Musk gets to buy Twitter at a much lower price eventually.
Suspect you are right, and Musk knew it all along.