scan range: add boundary check, cant be > UINT32_MAX