fix(utils): fix ensureValuePrecision to make sure value is always within range (min, max)
#798
+3
−2