It will keep stuff hot or keep stuff cold
How does it know?
Same way the deep water knows to stay out of the shallow end of the pool.