Elon Musk took the witness stand in a California courtroom this week, warning that artificial intelligence could either ...