on pain of
on pain of also under pain of {prep.}, {formal}
At the risk of; under penalty of.
The workers went on strike on pain of losing their jobs.
The rebels had to swear under pain of death never to confess where their comrades were hiding.
Categories:
Source: A Dictionary of American Idioms