I don't think that's what he was saying. Rather he was saying that religious people have an additional motive not to commit a crime.
An atheist's motives to avoid a crime might list as such:
-I might get punished by law
-I might get punished by popular opinion
-I might feel bad inside.
A religious person could have all those motivators then also the belief that god or gods made the action wrong.
Your forgetting that what if religion commands murder, like islam?
Also Christianity does this. But many of the modern interpretations ignore these. Similar to some mainstream islam.
"But those mine enemies, which would not that I should reign over them, bring hither, and slay them before me.” (Luke 19:27 KJV)
From Gesta Francorum (The Deeds of the Franks):
“The defenders fled along the walls and through the city, and our men pursued them killing and cutting them down as far as Solomon's Temple, where there was such a massacre that our men were wading ankle deep in blood ... Then the crusaders rushed around the whole city, seizing gold and silver, horses and mules, and looting the housing that were full of costly things. Then, rejoicing and weeping from excess of happiness, they all came to worship and give thanks at the sepulchre of our saviour Jesus. Next morning, they went cautiously up the temple roof and attacked the Saracens, both men and women [who had taken refuge there], cutting off their heads with drawn swords ... Our leaders then gave orders that all the Saracen corpses should be thrown outside the city because of the stench, for almost the whole city was full of dead bodies ... such a slaughter of pagans had never been seen or heard of, for they were burned in pyres like pyramids, and none save God alone knows how many they were.” 1
Deuteronomy 17
If there be found among you, within any of thy gates which the LORD thy God giveth thee, man or woman, that hath wrought wickedness in the sight of the LORD thy God, in transgressing his covenant; 17:3 And hath gone and served other gods, and worshipped them, either the sun, or moon, or any of the host of heaven, which I have not commanded; 17:4 And it be told thee, and thou hast heard of it, and enquired diligently, and, behold, it be true, and the thing certain, that such abomination is wrought in Israel; 17:5 Then shalt thou bring forth that man or that woman, which have committed that wicked thing, unto thy gates, even that man or that woman, and shalt stone them with stones, till they die.
Anyone arrogant enough to reject the verdict of the judge or of the priest who represents the LORD your God must be put to death. Such evil must be purged from Israel. (Deuteronomy 17:12 NLT)
Whoever sacrifices to any god, except the Lord alone, shall be doomed. (Exodus 22:19 NAB)
They entered into a covenant to seek the Lord, the God of their fathers, with all their heart and soul; and everyone who would not seek the Lord, the God of Israel, was to be put to death, whether small or great, whether man or woman. (2 Chronicles 15:12-13 NAB)
etc
etc