The second example is a famous opening line from Zhuangzi 《庄子·养生主》: 吾生也有涯, 而知也无涯 — used by Chinese students for centuries to warn against burning out chasing infinite knowledge with finite years.
memory
涯 today appears almost only in compounds: 天涯 tiānyá ('horizon, far-off place'), 海涯 hǎiyá ('sea's edge'), 生涯 shēngyá ('career, life'), 无涯 wúyá ('boundless'). Three-dot water radical 氵 + 厓 (cliff) gives the sound and the 'edge of water' image.