How can you know in advance if a behavior is unwelcome?

Here are some general guidelines to avoid committing unwelcome behavior: