If the scanning of the environment through the five senses comes back as threatening or dangerous that passes on the management of the dangerous situation to a smaller part of the Brain that specialises in managing Threats and Danger. This part is called the Amygdala. It constitutes a fraction of the Frontal Cortex. It manages the dangerous situation through three mechanisms
Fight
This solution is an instruction to engage with the danger and fight it
Flight
This solution is implemented when the Fight option is seen as unsafe or unproductive
Freeze
This is the final solution where Fight or Flight have been assessed as not productive or dangerous. The only remaining solution is to Freeze either out of helplessness or to play dead and avoid being attacked.