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.