It's not difficult it's just not used for tax fraud/avoidance. The way it typically works in Europe is with double taxation agreements.
You can earn & get taxed in Austria and live in Czech Republic.
this works only for permanent employees, it goes out of the window if you are sole proprietor or managing director, in this case the residence matters a lot and you will be taxed additionally in country u reside in