"Neutrality" for a country (as per the Hague convention) basically means that you cannot help a belligerent and you have to treat the belligerents equally.
So I assume that if you open your borders to all fleeing citizens, that's neutral, and if you close it to all, that's neutral as well.