Checks if the addition of this and other causes an overflow.
other
bool addOverflows(int other) => ((other > 0) && (this > max - other)) || ((other < 0) && (this < min - other));