Temperature protection strategy for energy storage charging piles