I'm not even sure living in the country helps that much on its own. The issue is that the vast majority of your language intake comes from your immediate surroundings - the media you consume, the friends you have, the books you read, the place you work, etc. I've seen a lot of language learners move to a country, take classes, but get stuck in an expat bubble. The worst part is, when you take classes, you're surrounding yourself with other non-natives.
For most major languages, a heavy immersion is possible in your home country, especially with the amount of media that's now easily available. Heavy immersion is very effective, but it's also extremely difficult to pull off. The AJATT guy[1] was a big advocate for it and was extremely successful with it when it came to Japanese, but even he couldn't replicate it for Chinese from what I recall.
If you're not going the heavy immersion route, I guess the best thing would be to just have fun with the language, pick up what you can, and accept that you'll never be great at it.
For most major languages, a heavy immersion is possible in your home country, especially with the amount of media that's now easily available. Heavy immersion is very effective, but it's also extremely difficult to pull off. The AJATT guy[1] was a big advocate for it and was extremely successful with it when it came to Japanese, but even he couldn't replicate it for Chinese from what I recall.
If you're not going the heavy immersion route, I guess the best thing would be to just have fun with the language, pick up what you can, and accept that you'll never be great at it.
[1] http://www.alljapaneseallthetime.com/blog/