try twice to see if a python number can trans to a c number with overflow check