Take the device to an Xiaomi Authorized Service Center with proof of purchase. They will reflash the correct IMEI using Xiaomi’s signed tools without legal risk.
(if not already).