for those of us that believe in God but love science know this problem has already happened via Satan...a powerful created being but sought to replace his maker.
The story of Satan's fall is a good allegory for the possibility inherent in AI.
For those of us that don't believe in nonsense and love science, books like Bostrom's Superintelligence is both a precaution and a tremendous encouragement. Intelligence is acceleration, is escape.