Recently Motorola followed by Samsung started disabling/locking devices flagged as "illegal" through Mexico marking a precedent over the remote control manufacturers have over the devices they sell! Only after Mexican government made an official request to manufacturers they removed the lock.
Sources: https://linustechtips.com/topic/1537307-android-phones-disabled-remotly-in-mexico/ https://www.sammyfans.com/2023/10/23/samsung-stops-blocking-illegally-imported-galaxy-phones-in-mexico/
Its not illegal.
This is about manufacturers not wanting to loose their control on distribution and price setting.