Someone asked a famous teacher, how do people living in monasteries stay chaste?
The teacher said, “When you see someone of the opposite sex, think of them as a member of your family. If they are older, think of them as a parent. If they are about the same age as you, think of them as a sibling. If they are younger than you, think of them as your child.”
The person said that doesn’t always work. What then?
The teacher said, “If that doesn’t work, always remember what human bodies are really composed of. The outside might be attractive, but the inside is filled with things that would turn your stomach if you were able to see them.”
The person said that might be easy to do for mature or experienced people, but it might be harder for less mature people.
The teacher said, “If even that doesn’t work, the moment you realize you’re attracted to someone, recognize that you’re attracted to him or her, and stop dwelling on it.”