am I getting bad advice?

Me and this guy really like each other, he's going to the air force soon and a third party ( older person ) is telling me to leave him alone because I'll be in the way of his opportunities... every time I try to listen to the  persons advice it makes me feel bad 😔 the slightest sign off affection he shows I basically have to reject.. am I doing the right thing ?