After I unlocked my bootloader of my Xiaomi Mi A1, I wanted to boot into TWRP by using this command: fastboot boot twrp.img but it wouldn't do anything so then I typed 'fastboot reboot' and it started to reboot and went onto the screen with the MI logo but then the screen went blank, the phone vibrated and it started rebooting again. I left it for a while and when I returned, it was still rebooting constantly. I do not know what is happening but I tried to lock the bootloader and then boot into recovery but that didn't work. I managed to somehow get into TWRP (not knowing how) twice and the first time I just rebooted and the second time, I factory reset my device. From that point onwards I couldn't get into TWRP because I was trying to flash Ressurection Remix rom if I could get into the recovery. My phone is not yet rooted.