Trump and his supporters don't care about legalities. The only question is what they can get away with.
The Panama Canal belongs to Panama, Greenland belongs to its residents via Denmark, Canada is a sovereign nation.
Trump is just strutting, which is his standard position, pushing nonsense to his cult.