If this was a rom com, he's just attracted to you that's why he's being a dick, . Technically, he's being a bully and that shouldn't be allowed in the workplace. For now, be professional. Don't make any extra efforts to be nice to him, don't be left alone with him. If he's going to pull that shit, you're better off being in front of witnesses.