What should I do?

Okay so there is this guy and we are pretty cool I wouldn’t say friends but kind of and He told me he has a girlfriend so I decided to back off a bit because we were getting pretty close to each other the last week and he was talking to me today and and I was kind of being sluggish and when he walked in the class room he scared but with the chair I was sitting in and we were talking about stuff and he is always staring my direction in class he cause we sit together and J can always sense it and sometimes we make I contact for a bit till her breaks it at this point I know I need to stop being so close and speaking to him but it’s kind of hard what should I do?