The contrast set up between Barnabas with Ananias and Sapphira is in motive not action.
Our desire to make a name for ourselves is a devious temptation. It is common among all people. In fact, at the Tower of Babel, the Lord confused their language in order to stop this madness.
This passage should cause us to fear God and to be in awe of His holiness. Mankind is wicked but God is righteousness. This is what we all deserve and if the truth be told all of us should be dead for our evil motives of making a name for ourselves.
You might wonder why the leaders of Israel did not fall dead for wrongly arresting the Apostles for preaching the gospel. There’s much that could be said but let it suffice to say that judgment begins in the household of God.
There’s a different expectation for believers than that of the world. We are adopted children in God’s family. We ought to live our lives in honor of our Father.
So what? One place this potentially could happen is in the taking of the Lord’s Supper. “Some have died and many are sick.” We should take God’s holiness seriously and we of all people should be a repentant people.
We should help each other put to death the deeds of the flesh. Please check each other’s motives. This is love!