Stop at frame x?

how can i script something to say gotoAndPlay(5); but stop at 12?

I can’t just put a stop at 12 for various reasons.