Dear user
Follow this thread for flashing and downgrading your device.
[All in One] MIUI Flashing Guide: Unbrick, EDL Method / Locked Bootloader, Unlock Bootloader, More https://c.mi.com/thread-1479882-1-0.html
Thanks.