Necessity knows no law.

Literal

Necessity [possessive-の] before [to-に] law [topic-は] not-exist.

必要の前に法律はない — 'before necessity, there is no law.' A translated Western legal maxim. The に marks 前 as the reference point. The sentence structure is natural Japanese despite the foreign origin of the saying.