A guy

There’s a guy in my life and he has a girlfriend but he flirts with me and tells me I am beautiful he always asks my to come over and he is one of my best friends but I getting nervous to go over because idk what he will do. What should I do tell his girlfriend or tell him I am not wanting to be his friend anymore?? Help me