Unless time travel is a thing, no, Trump was not suggesting Milley could be executed with the following sentence.
This seems like just more misreporting about what the guy says, when he manages to string together a coherent sentence.
"This is an act so egregious that, in times gone by, the punishment would have been DEATH!”