First of all, the true religion must be compatible with man's initial natural disposition that needs a direct relationship with its Creator without the interference of mediators, which represents man's virtues and good qualities.
Islam calls for good morals and prohibits evil deeds. Thus, the reason behind bad conduct of some Muslims is their cultural customs or their ignorance of their religion and their distance from the sound religion.