Method check for number range