Extend upper/lower limit if a data point is too close to upper/lower limit