The Double-Edged Sword of AI in the Energy Sector