Messing with robots' self-confidence could prevent the AI apocalypse