Computers do what you tell them to do, not what you want them to do
— Ancient coding adage, circa 1970s.
This remains true for AI, and the military is (so far) being cautious before allowing drones to autonomously control weapons. So corporations and billionaires might pull a Stockton Rush and kill themselves with their own robot army.
Sadly, the robot army may then move on to secure its own survival by killing or enslaving the rest of us.