For this I would use either "edge" or "brink" = both having the meaning of a sharp delimiting point to something. "brim" and "rim" are both terms I would expect for the edge of a cup or similar vessel; or the edge of a lake or pond.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.