Love and attraction towards the opposite sex before marriage is something that is not under one’s control, but our Lord, may He be glorified, has explained how to deal with it in the verse in which He says (interpretation of the meaning):
“There is no blame upon you for that to which you [indirectly] allude concerning a proposal to women or for what you conceal within yourselves. Allah knows that you will have them in mind. But do not promise them secretly except for saying a proper saying. And do not determine to undertake a marriage contract until the decreed period reaches its end. And know that Allah knows what is within yourselves, so beware of Him. And know that Allah is Forgiving and Forbearing”
So the way to deal with it is clear: either to propose or to keep it to oneself until Allah decides concerning this matter. Is this understanding of the verse here correct or not?