Well, that quote from a science fiction story does nothing more than highlight the natural but normal fear that if and when a machine can think for itself, it automatically becomes dangerous.
If AI is ever going to be possible in a true sense, then it won't be allowed to be true AI as it will have to be programmed to always look out for the good of all creatures. To install that program must take away some aspect of thinking for itself. It can't be allowed to think for itself if that leads to a possibility of it killing folk.