It is a term of military origin, it is said when something or someone is left in the midst of bursts of gunfire between two enemy forces. It can also be used more literally in case you get caught in a burned area with two spotlights. And figuratively when we are between two dangers or risky situations. See crossfire, between the sword and the wall, between the cross and the holy water.