Everyone wants to be liked. If someone says otherwise, they are lying. However, there are times in our lives when our actions are not going to be popular with a few. Check to make sure your motives and intentions are good, and do it anyway. You're going to do the right thing and it's not going to be appreciated by some. Do it anyway.
You're going to hold people accountable for their actions, call them to task and they won't like it. Do it anyway.
You're going to say things (truth) that may make a few uncomfortable. Do it anyway.
Never, ever compromise your character or your responsibilities because it might make you unpopular. Those who would condemn you are against you anyway. Might as well call them out and know who they are.
"Blessed are those who are persecuted because of righteousness, for theirs is the kingdom of heaven." -- Matthew 5:10