"Go to Bethel, and sin; To Gilgal, and sin more. Bring your sacrifices every morning, Your tithes every three days,
The simple and obvious meaning of this passage is that man's environment shall exhibit a certain hostility to him throughout man's pilgrimage upon earth.  Also, the opposition which shall arise from the environment itself has a benign purpose, not the mere punishment of man, but "for his sake," in order that he might not forget God. This principle, from the very first book in the Bible is carried forward in the last book of the Bible, in  Revelation 8-9, in which is related the story of the seven trumpets sounding over the human environment; and significantly, the disasters foretold there are part and parcel with the disasters visible in this section regarding God's dealings with ancient Israel.