The chances of getting caught are high. If someone who dislikes you notices a car with Swedish plates staying the night too often, they might report you, and the fines for violation are terrifying, the tax itself with 50% on top if memory serves.
https://www.econlib.org/archives/2018/03/why_the_chicken.htm...
So as a private consumer instead of buying a $100k BMW and that ends up costing $225k you'd buy the $100k one, and an entry level $50k base model, and have $75k left to spend on moving parts over before you'd break even.
When that's considered tax fraud and when it's considered perfectly legal will differ by country. I assume it isn't illegal for danes to buy a new engine, seats etc. for their existing cars without needing to change the VIN.
It's similar when you buy a car in Oregon (no sales tax) and want to register it in Washington (10% sales tax). If that was a way around paying the tax, every single person in the state would be doing it. The government has thought of this as well. And if you say "oh, I'm even smarter than that, I simply won't register the car in Washington", that gets you a felony conviction when you're caught.
It's almost as if governments can anticipate some obvious loopholes and close them.