What validation pattern have you set for the field?
var newValue = parseInt(xfa.event.newText, 10);
if (isNaN(newValue) || newValue < -2147483648 || newValue > 2147483647)
xfa.event.change = "";
If you need larger values your will need use a text field.