How you perceive threat determines your behavior