Live in the world as if only God and your soul were in it; then your heart will never be made captive by any earthly thing.
But there is a corollary to freedom and that's personal responsibility, and the real challenge is how you generate that personal responsibility without imposing it.