Why are there exceptions to the rule in the Bible?

Why has God allowed these “exceptions to the rule,” I will give just two examples from the Bible.1.) It is written in Scripture that it is appointed for men to die once (Hebrews 9:27), however, there have been countless cases of people who died twice (1 Kings 17:22; 2 Kings 8:5, Matthew 27:52, Mark 5:25, John 11:44).The Bible tells us that these people were raised, but died naturally again.2.) Voluntarily violating a commandment given by the Lord Jesus to certain persons in certain situations.See the example in Mark 7:36, is this violation of the commandment considered a sin or not?

In all cases when some people have been resurrected, the glory of God was shown so that people might believe in Him. When he was going to resurrect Lazarus, Jesus told his disciples:

So Jesus then said to them plainly, “Lazarus is dead, and I am glad for your sakes that I was not there, so that you may believe; but let us go to him.” (John 11:14-15)(NASB)

So, the purpose of this resurrection was that people might believe that Jesus is the Christ, the Son of God, and believing to have eternal life in His name.

I do not know how great was the sin of those who have confessed about Jesus Christ when they were banned by the Savior to do so. But I know that a far greater sin today have those who do not preach the Gospel to others and despise the command of Jesus who said:

Go therefore and make disciples of all the nations, baptizing them in the name of the Father and the Son and the Holy Spirit, teaching them to observe all that I commanded you; and lo, I am with you always, even to the end of the age.” (Matthew 28:19-20)(NASB)