How to Avoid Relationships that Don’t End in Marriage?

I’m attracted to a colleague at school, and I may fall in love with him. We are both 16 years old, and the chances of getting married are very slim. How can I avoid this?