What does aus der Not heraus handeln mean?

aus der Not heraus handeln - German to English

to act from prerequisite