suggests that
extreme need may lead people to disregard ordinary rules or restrictions. The saying describes the force of necessity rather than a general legal exemption.
When the flood cut off the village, residents entered an empty building to shelter from the rising water. “Necessity knows no law.”