I wouldn't say it's the most dangerous threat, a direct hit from a Carrington level flare or larger is probably a greater threat to our society than AI, and I wouldn't say the AI threat is certain, because by the time we develop an AI and it goes rogue, who knows what methods we might have of fighting back, or if the AI will ever turn on us. However, I would say that it's a pretty big threat, but not certain, and if it does happen, it will be a very long time into the future, maybe even beyond our lifetime.