Since religion works on a reward system, more good deeds "7asanat" than bad deed "saye'aat", is good for you and is the only way for paradise, then certainly the more good deeds you do the better of you are once you die. Therefore, all your behavior is influenced by this idea.
So if one had the opportunity to do a good deed, wouldn’t he do it? I would, and so would you. Given that you're a normal human being!
So how can I get more good deeds? Just
follow what god wants you to do, do good. That seems easy.
So, if I
segregate boys and girls in schools, deny her the
right to vote, ban her from
driving, like in Saudi Arabia and make her wear the
Hijab like in Iran also,
soon in Kuwait. That must be good.
Religion needs to function for the
benefit of society. The driver of religion was the individually motivated gainer, or the minority group of gainers where as the society as a whole never benefits. And if you pay attention at a micro level, the amount of individuals losing the opportunity of free will and a chance to decide, can lead to a
behavior counter to what religion was meant to achieve.
And if you continue to do what you think god wants you to do while you take no notice of the issues concerning society then you are mistaken.
----update----
error: but this will not solve the problem!
i saidLegislator: I shall do what pleases god.
he answered
If an individual takes an action that will effect the community motivated by an afterlife reward then the action will output a negative result for that community.
Also if that same individual takes an action that will effect the community motivated by a reward in any given lifetime then the action will output a positive result for that community.