Threat Assessment And Proactive Decision-Making For Crash Avoidance In Autonomous Vehicles