Pain here means punishment, an older sense inherited through French from Latin poena.
Under threat of a penalty
rules
formal
Used after an order to name the punishment that will follow if it is not obeyed.
Examples
- They had to leave on pain of arrest.
- The files must be returned on pain of a fine.
- He was ordered to remain silent on pain of dismissal.
- Visitors may not enter on pain of prosecution.
- The deadline must be met on pain of losing the grant.
Similar words
under threat of
under penalty of
at the risk of