It is noteworthy that here at the end, just before redemption arrives, one of the biggest tests facing the Jews is whether to unite with goyim or separate from them. Please understand that the following quotes are not my words, but the words of Torah scholars. They are taken from the footnotes of the book The End of Days, Vol 1 by Shmuel Raber. [Note the emphasized text is bolded in the original.]
"...During the First World War many came to the Chafetz Chaim and asked him if this is the 'End of Days' and the war of Gog and Magog. The Chaftez Chaim answered: 'After this war there will be a pause and then there will be another war and then another pause. Then there will be another war and with that war the Mashiach will come...the last war will be the beginning of the redemption, and a Torah-true Jew who is completely separated from the non-Jews will not be subjugated, as we find that in Egypt when two people drank from the same cup, one (an Egyptian) drank blood and the other (an Israelite) drank water. This shows that in fact there is no rule whatsoever over a Jew who is separated entirely from the non-Jews" (Rabbi Aharon Kotler, in the name of the Chaftez Chaim, Leket Reshimot Channukah by Rabbi Noson Wachtfogel, p. 40).
"I have a tradition passed down from one to another in the name of Maran HaGaon Rabbi Yehoshua Leib Diskin, z"l, that in the final war before the arrival of the Mashiach all of the righteous Jews will be saved. Who are the 'righteous Jews'? Those who are separated from the non-Jews! It does not mean that they must be one of the 36 righteous individuals, rather they must be separated from the ways of the non-Jews and have no contact with their culture! Not with their newspapers, their music and books; to be entirely separated from them. Then Hashem will say: You are Mine and you are under a different authority so no one else will rule over you" (Ibid., p. 41).