AI's Dual Impact on Energy Sector