In the first part we learn how to redeem a destitute brother from a “resident non Jew” (or “alien” as the Reform Torah calls them).
In the second part, Chapter 26 of Leviticus, we hear again about not making idols, statutes, or monuments...or even a stone to prostrate yourself.
The commentary says this is addressed to the destitute Jew who is now owned by a non Jew. The Jew is not to imitate the non Jew.
And you are not to prostrate yourself anywhere but in the Holy Temple.
This ends with the repeated message of keeping My Sabbaths and fearing My Sanctuary. At this moment, it seems like G_d is a control freak.