means that
the appropriate judgment or course of action may change when the circumstances of a situation are different.
When our opinion or behaviour may change according to the prevailing circumstances., the saying “Circumstances alter cases” is appropriate.