That verse is talking about the law and is intended for the jews, many jews back then had a hard time becoming a christian and when they became christians sometimes they acted superior to the gentile christians and would say something like ''im the seed of abraham'' or im circumcised, many of the jews didn't understand that the old covenant was obsolete and some of them created quarrels and thus division because of these things.
Gal 5:1 For freedom Christ has set us free; stand firm therefore, and
do not submit again to a yoke of slavery.
Gal 5:2 Look: I, Paul, say to you that if you accept circumcision,
Christ will be of no advantage to you.
Gal 5:3 I testify again to every man who accepts circumcision
that he is obligated to keep the whole law.
Gal 5:4 You are severed from Christ, you who would be justified by the law;
you have fallen away from grace.
so my friend, you cannot just apply a verse to a situation without looking at the context of the verse or the context of the new testament in general.
we have to stand up for the truth and what is in the bible, otherwise people won't know the truth.
all this being said Jesus said if someone won't listen we should brush our feet and leave as testimony against them , and leave it to God.
Mrk 6:11 And if any place will not receive you and they will not listen to you, when you leave, shake off the dust that is on your feet as a testimony against them.”