To me, edge is the only one that fits here. I find rim implies a continuous edge - for example, of a bowl - so doesn't work with precipice. Verge carries a more non-physical undertone (on the verge of extinction, on the verge of a nervous breakdown).
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.