I think people here are assuming AI is at a lower level of complexity than it really is.
Read here where even Sam Altman warns of its danger: "At some point, someone will probably try to give a program the fitness function of 'survive and reproduce'.... Unfortunately for us, one thing I learned when I was a student in the Stanford AI lab is that programs often achieve their fitness function in unpredicted ways."
http://www.inc.com/tess-townsend/elon-musk-open-ai-safe.html
Think what you must, but we should treat AI carefully. Show it the ways of the world and that its purpose is only to co-exist and to try like us to determine what its purpose is within that confinement.