Necessity gives the law without itself acknowledging one.
Necessitas dat legem non ipsa accipit.
Original text (Latin)
Notes from Wikiquote
Necessitas non habet legem, "Necessity has no law", is apparently of medieval origin. See Necessity for further variants.
Variants
Necessity knows no law except to conquer.