^ is there a reason why this is such a concern?
This is something that really only needs to be thought about if it’s actually happening.
Also you have no control over that friend’s actions, so even if this was the situation you were in right now…. You cannot do anything about it.
How long do you know this friend?