Attacking a judge in your criminal case sounds like legal suicide. That hasn’t stopped Trump from doing it, presumably against the advice of his attorneys. That’s the bargain you make when you represent Trump; you will generate plenty of publicity, but if you are to win, it will be in spite of your client, not because of him.
And this is just the beginning. You can be sure that Trump’s attorneys will do everything possible to keep him off the stand, because they can imagine what will happen when a man who told tens of thousands of lies during his presidency faces cross-examination. He will ignore them and insist on making his stump speech to the jury. What happens afterwards will have great entertainment value for blue America.