game is up

game is up

 and jig is up
Fig. The illegal activity has been found out or has come to an end. When the police were waiting for them inside the bank vault, the would-be robbers knew that the game was up. "The jig is up!" said the cop as he grabbed the shoulder of the pickpocket.
See also: game, up