The thing is, religious texts say a lot of shit, particularly the major religions which often have a whole lot of text including not just their "official" book but all kinds of other documents that have some measure of authority in their belief system for various reasons. Also because the documents are old, and composed of various collected stories of various authorships, there are generally plenty of contradictions, things that have been shown to be untrue, and so on.
So what really happens is people choose to believe the parts they like, and ignore or reinterpret the rest. They follow the parts they wish and find justifications for not following the others. This happens all the time in all religions. Generally, religious ideology is an excuse, a justification, for a behaviour, not the case. People don't read a holy text and say "Oh, well I have to follow this to the letter!" Rather they have something they want to do and they find a way to make their belief system justify it.
You can see it with things like the "prosperity gospel" Christians and so on. Any even somewhat literal reading of Jesus's teachings shows the guy was the ultimate hippy. All about helping the poor, against material wealth, etc, etc. However, they find a way to justify their views in the bible.
Or the crazy things Orthodox Jews go through to supposedly obey arbitrary restrictions in the torah, while then skirting around them. Like they believe that the prohibition on making fire on the sabbath applies to electricity. However then there are things like ovens with timers greater than 24 hours, so you can have it come on automatically on the sabbath and that's ok. Oh Shabbos Goys, non-Jewish individuals you can hire to do things for you that you are not allowed to do on the sabbath.
Same shit with any of the variants of Islam. What the Koran says isn't really relevant. They'll find a way to make it justify what they want to believe. They can find a way to twist it to allow things that are specifically forbidden, or to ignore things that are required, or whatever.