"When thou shalt beget children, and children’s children, and ye shall have remained long in the land, and shall corrupt yourselves, and make a graven image, or the likeness of any thing, and shall do evil in the sight of the Lord thy God, to provoke him to anger:"
The EGW passage directly reflects the warning in Deuteronomy about future generations turning to idolatry after a long period of prosperity. The Deuteronomy verse is a specific warning, and the EGW passage is a general statement of that principle.
"And the children of Israel did evil in the sight of the Lord, and served Baalim:"
Both passages describe a falling away from God and a descent into idolatry. Judges 2:11 specifically mentions the Israelites serving Baalim, while the EGW passage speaks more generally of leading generations into idolatry. The connection is thematic, focusing on the danger of turning away from God and embracing false gods.
When the tower had been partially completed, a portion of it was occupied as a dwelling place for the builders; other apartments, splendidly furnished and adorned, were devoted to their idols. The people rejoiced in their success, and praised the gods of silver and gold, and set themselves against the Ruler of heaven and earth. Suddenly the work that had been advancing so prosperously was checked. Angels were sent to bring to naught the purpose of the builders. The tower had reached a lofty height, and it was impossible for the workmen at the top to communicate directly with those at the base; therefore men were stationed at different points, each to receive and report to the one next below him the orders for needed material or other directions concerning the work. As messages were thus passing from one to another the language was confounded, so that material was called for which was not needed, and the directions delivered were often the reverse of those that had been given. Confusion…
"And they said, Go to, let us build us a city and a tower, whose top may reach unto heaven; and let us make us a name, lest we be scattered abroad upon the face of the whole earth."
The EGW passage provides a detailed narrative of the confusion of languages at the Tower of Babel, expanding upon the brief account in Genesis 11:4. It describes the practical difficulties and the divine intervention that led to the project's failure.