The Clausius inequality is a consequence of applying the second law of thermodynamics at each infinitesimal stage of heat transfer. The Clausius statement states that it is impossible to construct a device whose sole effect is the transfer of heat from a cool reservoir to a hot reservoir. Equivalently, heat spontaneously flows from a hot body to a cooler one, not the other way around.