Jesus clearly answered your question: Matthew 7:21-23 - 21”Not everyone who says to Me, ‘Lord, Lord,’ will enter the kingdom of heaven, but he who does the will of My Father who is in heaven will enter. 22”Many will say to Me on that day, ‘Lord, Lord, did we not prophesy in Your name, and in Your name cast out demons, and in Your name perform many miracles?’ 23”And then I will declare to them, ‘I never knew you; DEPART FROM ME, YOU WHO PRACTICE LAWLESSNESS.’
This is because a real Christian (not in name only) is a new creation. Therefore, if anyone is in Christ, he is a new creation; the old has gone, the new has come! (2 Corinthians 5:17). The Bible declares that a true Christian will not live a state of continual, unrepentant sin (1 John 3:6). The Bible also says that anyone who departs the faith is demonstrating that he was never truly a Christian (1 John 2:19). He may have been religious, he may have put on a good show, but he was never born again by the power of God. By their fruit you will recognize them (Matthew 7:16).
John 6:28 Then said they unto him, What shall we do, that we might work the works of God? 29 Jesus answered and said unto them, This is the work of God, that ye believe on him whom he hath sent.
You want to keep people under the law?
Galatians 4:9 But now that you have come to know God, or rather to be known by God, how is it that you turn back again to the weak and worthless elemental things, to which you desire to be enslaved all over again? 10 You observe days and months and seasons and years. 11 I fear for you, that perhaps I have labored over you in vain.
Jesus fulfilled the requirements of the law. We are no longer under those laws but are under grace. And please don't go down that road of "well then we can do anything we please" nonsense. Anyone who understands the indwelling of he Holy Spirit and it's results understands.