Limiting value setting to min < value < max