A White House spokesperson put it the best, I think:
The White House spokesperson Andrew Bates, when asked about Trump’s comments, said: “Encouraging invasions of our closest allies by murderous regimes is appalling and unhinged – and it endangers American national security, global stability and our economy at home.”
What’s so insane about all this is that Trump saying something like that out loud means it’s now practically gospel to the vast majority of GOP voters, and might as well be official party policy.
Reminds my of when Trump threatened to withdraw troops from Germany to punish them and a high-ranking military officer had to correct him and explain that the American troops are not in Germany to protect Germany but for the benefit of the US in order to support its strategic interests in the region.
Trump seems clueless on these things.