If you want to switch to official MIUI 10 developer make sure your bootloader is unlocked. "Fastboot oem device-info" or simply look if "unlocked" is showing when phone rebooting, or check it in developer option if it's OEM unlocked.
Then you can use Mi flash tool to upgrade BUT make 100% sure...