A majority of Poles would be ready to give up their generous financial aid from the European Union or leave the bloc altogether to ensure the country can shut its borders to Muslim refugees, a poll showed.

Coinciding with a visit by U.S. President Donald Trump on Wednesday, the poll of 1,000 people showed more than half of respondents, or 57 percent, said they would be willing to do without EU development funds to maintain the stance of rejecting refugees from Muslim countries. Fifty-one percent said they’d be ready to surrender membership in the 28-member trading bloc. The June survey, conducted by the pollster IBRiS and published in the Polityka weekly, had a margin of error of 3 percent.