Place it at the end of a setup where a character trusts the machine, then follow it with the Nope sound for the refusal and the Enemy Spotted sound when the trap is revealed, keeping it as the turning point of the scene.