Perhaps in the aftermath the fact of crossing the border will be used as an element of legal processes, but in the moment the border was not a focus for legal or military defenses. And as for war: I am writing this during the Russian invasion of Ukraine, which seems like a counterargument: one country invades another, crossing its border, impinging on its territorial sovereignty. Physical borders are an anachronism.