Dear arkay,
Thanks for writing to us, welcome to the community. On MT5 you can use the bot on Real and Demo accounts at the same time if there are two different metatraders installed because the session will not be kept on a single metatrader software. You can install two different metatraders in the same pc in 2 different folders and set up them with one real and another demo.
I hope I could help you.
Thanks
-Sanchay Kasturey