Correction: "the JIG is up." Below is a link to a
Post# of 148159
If you don't want to click on the link, the most likely etymology is a reference to the Irish dance, the jig, being over ("coming to an abrupt halt" )
https://crossidiomas.com/the-jig-is-up/