Agreed 100%.   You have to be straight up with people like that or they think you're weak and will keep bothering you. Both you and your friend need to tell him to fuck off and if he bothers you, report him to the gym. I'm sure there are cameras in the area keeping track of the people getting too close and looking uncomfortable.