How well you know someone that defines the appropriateness of the things you say to this person. You probably have high relationship cred with your bff but low relationship cred with the stranger in line ahead of you at the grocery store.
His joke was totally inappropriate given that we have low relationship cred.