Thank you for amazing reply @thelogicaldude
So in my mind the only way that the machines can take over, is if the sheep of the world stay asleep and let it happen and don't actually try to think for themselves.
That's really big problem. In my opinion mass media and internet enabled a enormous ability to manipulate and control people around the world. And this situation can only get worse in the future. For example, there are already plenty of examples of winning elections just because of successful campaign on social media, based on manipulating people.