Right
竟 — originally 'to finish a piece of music' — supplies the sound jìng directly. The 'finishing, terminating' flavour leaks into the meaning: a border is where one territory finally ends. Same phonetic appears in
镜 mirror; the cluster cleanly distinguishes border (
土) from reflective metal (
钅).