Before any machine could do it, Norbert Wiener described the real failure mode of artificial intelligence in 1960: not malice but literalness, a machine pursuing the purpose you specified instead of the one you meant. The episode sets his warning beside Turing's talk on machines taking control and I. J. Good's intelligence explosion, correcting how both are usually quoted.
Historians dispute whether Wiener was heeded or merely admired, and whether the Dartmouth optimism was a sincere forecast or a funding pitch. Whether his warning is specific enough to mean anything today, or only fits in hindsight, is also argued.