[3.13] gh-126595: fix a crash when calling `itertools.count(sys.maxsize)` (GH-126617) (#126739)

gh-126595: fix a crash when calling `itertools.count(sys.maxsize)` (GH-126617)
(cherry picked from commit 6e3bb8a91380ba98d704f2dca8e98923c0abc8a8)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
3 files changed