What is the meaning of On_pain_of?

Used to warn of consequences if a specified act is done or not done: subject to the punishment of (some penalty); or subject to the circumstance of (some thing).

Source: wiktionary.org