Gag orders are 100% legal and necessary to the system.
Trump whined that he was unable to express his version of what happened.
But Trump claimed that he never had any sexual contact with Stormy Daniels.
The purpose of a trial is to reveal the truth, so obviously, the prosecution should be permitted to attempt to catch him in a lie.
The prosecutor is smarter than Trump, of course, and Trump is not at all a good liar. He is a FREQUENT liar, but he is not good at telling convincing lies. Plus, he believes that reality is whatever he says it is.
The prosecutor would have torn him a new one, right through his diaper. R-I-P!
It would have been very amusing to watch.
It well could have become a new "Who's on first?" dialogue