Necessity may render a doubtful act innocent, but it cannot make it praiseworthy