it must be that illegal immigration ultimately affects all the member states on the outer borders
It must be said that illegal immigration ultimately affects all the Member States, not just those on the outer borders.
It must be that illegal immigration ultimately affects all the Member States, on the outer borders.