In most cases, wearing other people's glasses can cause damege to your eyes because your prescription power is different from other people's and you also have different PD. Other people's glasses won't fit you properly, so you'd better not wear other people's glasses.
If you wear other's glasses for only several times, it doesn't matter a lot. But it is not suggested to wear other's glasses because everyone's prescription is different such as the sphere number and PD number. You will feel dizzy and even get a headache when you wear it for a long time.