From fake images generated on social media to chatbots that replace human affection, right through to models capable of circumventing their own safeguards: the summer of AI has reminded us that the problem is not just what the machine can do, but how ill-prepared we are