I don't know why you are all so caught up on A.I. intelligence destroying the world. There is a chance that it might be actually a good thing.
If you are interested in positive side of A.I. then read this book https://marshallbrain.com/second-intelligent-species.htm
Not caught up on AI destroying the world, only exploring one of the ways how actualy humanity could end