Changing externals and environments can be helpful, but real, lasting change begins at a heart level and branches out from there.
Guardrails help us stay on the road. External controls can be helpful. Go deeper. Ask God to reveal the blind spots that are blocking His work in our lives. Then ask for His help to create in us a new heart.
(For deeper study, read Psalm 139 and Psalm 51)