AI: A Double-Edged Sword for Cyber Threats and Defense