Bullies intimidate others because they have a particular advantage, such as being a senior or being bigger than you. You're familiar with the fact that this is common in schools, but they also exist in the workplace. Although they can be juniors or at the same level as you, they are usually seniors who like to boss you around. They come in many forms, either complaining too much or making you do extra work. Now, how do we deal with this kind of impossible coworker?
Take a stand quickly. You may start seeing signs early on before it grows into full-grown bullying. Addressing the issue quickly makes it easier to tackle. Make your stand known when you notice a coworker acting improperly toward you. Meet them and clarify the situation immediately by asking why they have acted rudely. It may just be a misunderstood gesture, they may be going through a hard time, or it may be a bully alert. Taking a stand early makes you recognize which it is and which steps to take next.
If you discover no change after confronting the individual, it might be time to speak to a manager that can handle the matter. They may either speak to the bully directly or help you out with company policies that you can use to stop the act.
It is also important that you take care of yourself. Usually, bullies look for those who they can easily pick on. Taking care of yourself by having good self-esteem and ensuring you have your best interest at heart would communicate to bullies to keep off.