Check if values are within acceptable range

check_range(values, range, param_name)