You have to interpret it in the right context..

I believe that the same interpretation is possible in the Bible and Quran..

God requires that you worship none other than him - the analogy could be used of a husband who gets jealous when someone else vies for the affection of his wife..