Assuming the value is a Postgre Int (signed 4 bytes) - negative values not used - the possible max value is
2,147,483,648 (if my maths serves me correctly)
Even if
999999999999999999999999999999999999999999999999999999999
was an overly extreme example it seems to me that accepting over 2 Billion is a more than generous