Sadly, if you play around the maximum values for an int… It will not prevent the overflow to occur.
So if per non-luck you add let’s say even 30 and you miss the exact number, then you will overflow…
This for example will not be able to clamp you to the max value, because you will have already overflown by the time you do the addition.
I’m also noting that the value range is being completely ignored.