This^^^ is most excellent advice!!I respectfully disagree. Not ALL cockerels will attack or challenge. Mine used to, but I haven't had a problem cockerel in years. Not since I started raising them with a hands-off approach. As soon as I recognize a cockerel, I quit handling except for necessities. I let them know that I am the boss. I walk through them. I move them away from food and water, I walk after them and make them move. I back them up. If one decides to come my way, I go right toward him. If a cockerel is between me and where I want to go, I just walk and make him get out of my way.
I did have one cockerel (I wish he would have lived longer, but died defending his flock) that would look at me sideways every now and then. I'd just walk toward him until he moved away. One day, I was using my foot to gently scoot a pullet into the run. He heard her squawk, came running and saw me. He stopped, looked at me, and walked away. He knew.
OP, I don't know if this approach will help you with your cockerel at this point or not. You (and your parents if you are minor, living in their home) are the only one who can determine how much you'll put up with out of this cockerel. He may or may not become more well behaved. I doubt it, but it could happen. If he free ranges, you need to prepare yourself for the fact that you may have to get rid of him if he attacks a guest to your home. That's a liability. Spurs can cause puncture wounds, and a puncture wound full of dirt and manure can develop a pretty nasty infection. The Dr. bills could be costly.
Thank you @bobbi-j !