Place it near the end of a scare sequence, after the enemy spotted cue and before the FNAF jumpscare scream, so the laugh sets up the scare and the scream delivers it. Keep the laugh as the bridge between the warning and the payoff.