As for an iPhone's warranty being valid only in the country where it was sold – and meant to be sold – that is normal for iPhones.
I can't read the Arabic on this page (which, although I could be mistaken, appears to be the one for Qatar)
Legal - iOS Warranty EMEA Arabic - Apple (found within Legal - Hardware Warranties - Apple)
But Google Translate renders part of the page as
"IMPORTANT RESTRICTIONS FOR IPHONE, IPAD, APPLE TV, HOMEPOD, AND APPLE PRO VISION SERVICE
Apple may restrict warranty service for iPhone, iPad, Apple TV, HomePod, and Apple Vision Pro to the country in which Apple or its authorized resellers originally sold the device."
which is consistent with what I've read in these forums about iPhone warranties.