At Poland’s borders, Ukrainians are welcomed while refugees from elsewhere face a growing crackdown