Gates used to be one of AI’s optimists, but now he calls it “the most dangerous thing humans have ever gone near”