That's easy to answer: the beginning of international waters is defined as a certain distance from the border.
Which is the coastline, for the most part; international law considers countries to control land, and lakes, bays (some) and harbors, but not the seas and oceans.