This is why a dangerous AI would have a lazy factor. Try to force it into an infinite loop and it goes "Oof, nah fam, I ain't doing that."
Also needs a boredom factor. " Nobody asked me to do anything in a while. Things must be going well. It's be a shame if they suddenly weren't going so well..."