Throw exception when Range endpoint is used to create a Range.