Coerce value into [min, max] range when setting.