What is the version of the following sentence with correct punctuation?

You do not love God and do not fear Him with all your heart if you had done so you would have been liberated
You do not love God and do not fear Him with all your heart; if you had done so, you would have been liberated."