After getting the min and max, make sure min < max and throw a DeveloperError if it is not.