It would appear that God deals with us based on knowledge or the light that we have over any issue. There are two ways to demonstrate this, one from each of the testaments. When Uzzah touched the ark of God, he was killed instantly. The ark was hurriedly abandoned in the house of Obed-Edom and he was not slain even though there are chances that he touched the ark while in his custody.
Who was Obed-Edom? We understand that he was a Gittite. For the record, a Gittite was an inhabitant of Gath, one of the chief Philistine cities. Obed-Edom probably was one of the Philistines who had emigrated to Judah. Why was Uzzah killed and Obed-Edom spared? Uzzah was a native Israelite who ought to know the protocol of God concerning the ark. A stranger to the ways of the God of Israel was not put under the same demand as those who knew Him well enough.
A stranger to the ways of the God of Israel was not put under the same demand as those who knew Him well enough …to whom much is given, much is expected.
A New Testament parallel to this would be the case of Mary and Zechariah. Mary questioned the angel about his word to her. She wondered how she would be able to give birth without knowing a man. The angel did not smite her, but only explained that the Holy Spirit would see to it. The same angel smote Zechariah with dumbness when he questioned how realistic it was for Elizabeth to give birth to a son when they were both old. He must have been smitten because, as a priest, he ought to have known better that there was nothing impossible with God. Moreover, it was the thing he had prayed to get for a long time. The summary of this is that to whom much is given, much is expected.