check if long is out of bounds