limit the maximum value for a prediction