But he isn't a dunce.
He is a fairly intelligent, highly manipulative sociopath.
He did this because he is reasonably confident there will be no negative consequences for him doing this.
And he is likely correct about that.
Trump, on the other hand is an actual dunce, a brutish moron, who can barely even read anything that isn't a page of bullet points and/or constantly praising him / fluffing him up.
Probably all you need to know is that when you see industry conferences about AI and CyberSecurity?
Yeah, they're not about how to use AI to improve security with neat, new heuristic detection methods, and automated response scenarios.
They are about all the extra work you have to do, all the extra things you now need to be aware of and worried about, because AI so routinely introduces so many holes and exploits and flaws ... in so many places that you normally wouldn't think to check, because surely any person or team putting out that terrible of code would have been fired, right?
Beyond the methods one can use to 'trick' AI into doing things it isn't 'supposed to do'... mass AI adoption by large swathes of the economy is just literally a national security threat, it fundamentally compromises the security and integrity of tech infrastructure that now undergirds basically everything.