The ability to distinguish right from wrong is based on one’s wisdom, intelligence, knowledge and experience. It has nothing to do with whether one believes in a God or not. Does it mean that those who are atheists are unable to tell right from wrong?
Buddhism is an education where knowledge and wisdom predominate. By understanding the truth of life and universe, we are able to distinguish right from wrong.