The Evolving Landscape of AI in Cybersecurity: Navigating the Double-Edged Sword