If min is higher than max, or max is lower than min - use highest value for min and highest value + 1 for max