Here, this brings to mind a question: did the gods not give man knowledge of agriculture, engineering, construction? Or at the very least fire.
In Greek mythology, the Gods punished Prometheus for giving fire to humans; "fire" in this sense seems to be metaphorical, and means intelligence, knowledge, wisdom, insight, creativity.
Similarly, the Hebrew god Yahweh punished the Serpent for persuading Humans to eat the Fruit of the Tree of Knowledge. This same god punished Humans again when they tried to build a tower to reach Heaven; again, I would say, a metaphor for knowledge and wisdom.
The common factor here seems to be that the "gods", whoever or whatever they are, want Humans to be stupid and obedient and docile - to be their slaves, in other words - and get quite incensed when Humans try to get uppity by becoming intelligent. They obviously want to keep all knowledge to themselves, and not allow us Human Beings to have any.
Perhaps the problem is, if we start to develop intelligence and knowledge, eventually we will begin to see that the gods are insecure frauds, petty tyrants obsessed with being worshipped, or outright hypocrites who give us rules to live by but evidently feel that they are under no obligation to obey the rules themselves.
The best way to deal with such gods as these, in my opinion, is simply to ignore them and their irate tantrums, and get on with living your life.
Alchymist