Place it just before the visual payoff, then follow the mishap with a cartoon slip for slapstick edits or a sudden suspense hit when you want the warning to build toward a bigger reveal instead of a joke.