Clamp numbers to intervals taking into account the epsilon of the numbers at the end of the ranges.