math: introduce can_integer_overflow()