In Islam there is no church hierarchy no priests, ministers, vicars, deans, or popes. When a Muslim prays he prays directly to God not through any intermediary. When he serves God he is not serving an institution but God alone.
Every human being is individually responsible for their own actions and their own beliefs.
No one can take that responsibility away from you. If you think that anyone is ordering you to act against what you sincerely believe to be the will of God you are duty bound to disobey that order and instead obey Allah. Of course in coming to your conclusions about what Islam teaches you will find it useful to consult those who have studied the religion's sources carefully. These scientists may have varying interpretations and opinions but they all use essentially the same source material.