Please help!!!

I met this guy at my job(we work together) but he has a girlfriend. We both have feelings for each other and we text every day. I know I can't be with him but talking to him makes me fall for him even more. . . we decided to be friends. Should I be friends with him even though I have strong feelings for him or should I just leave him alone??