Tesla CEO Elon Musk said that the company’s Optimus robot could follow people around and prevent them from committing crimes.