The phrase often carries a negative or ominous tone, implying unavoidable bad fortune. She sneaked into the club, but her number is up if she's caught.
Pro Tip 2/3
Not Literal
It's not about actual numbers; it's a metaphor for impending consequences or the end of a situation. He dodged his responsibilities, but now his number is up.
Pro Tip 3/3
Imminent Outcome
Suggests something is about to happen very soon, often something inevitable or inescapable. With the evidence piling up, her number is up.