Thinking of sex before marriage

okay so I'm a teenager girl and I promised myself and family that I won't have sex until marriage. But in one of chapters in the book of Matthew it talks about if u think about having sex your basically not a virgin anymore. so what does that mean...