necessity defense — Legal Definition, Examples & Cases