For reaction to be spontaneous according to 2nd law:
$\begin{aligned}
& \Delta \mathrm{G} \lt 0 \
& \Rightarrow \Delta \mathrm{H}-\mathrm{T} \Delta \mathrm{~S} \lt 0 \
& \Rightarrow \mathrm{T} \gt \left(\frac{\Delta \mathrm{H}}{\Delta \mathrm{S}}\right)=\mathrm{T}_{\mathrm{e}} \
& \Rightarrow \mathrm{~T} \gt \mathrm{T}_{\mathrm{e}}
\end{aligned}$