There will inevitably be someone there that won't like you, and no matter what you do they may continue to dislike you. No matter how careful you are you will inevitably make some bad choices, miss opportunities, and be on the wrong end of an argument and that is how you will be defined. People far less deserving than you will be your superiors and promoted ahead of you. You will be blamed for mistakes you didn't make, and have credit for your successes stolen from you. You will be driven to the point of doing things you know are wrong to stay competitive. Ultimately you will be sorely tempted to give into despair and cynicism and simply try to exist with as little pain as possible.
If you want to be well liked, understand this. Understand it when you begin your career and wonder at your coworker's lack of enthusiasm and reluctance to take chances. Understand it when you work 60 hours per week to save the project and it fails anyway due to reasons beyond your control. Understand it when you are promoted and people you thought were your friends become your enemy. Understand it when you are in the boardroom and your colleagues snicker at the thought of those below them. Understand it, but do everything you can to free yourself from it.