Working from outside Taiwan?

Hi I am a foreigner Taiwan, I am ppanning to move back to my home country in the future while maintaining my job in Taiwan. I will be working remotely. I would need to keep extending my ARC so my bank will stay active. Just wondering if anyone is on the same status with me and how do you do the legal stuffs. Thanks!