I’m not a teacher.
With a number of verbs both the gerund and the infinitive may be used. With the verbs “to remember”, “try”, “intend”, “prefer” the infinitive usually refers to the future, and the gerund to the past.
I remember seeing the book in many bookshops.
Remember to buy the book.
Well, I tried to stop them but it was no use.
We had tried washing them ourselves in the river.. and it had been a failure.
“I intend,” she told him…”to continue to do so.”
“She had intended saying “awful”, but she amended it to “is not particularly good”.
Yanny’s retort was curt: “I prefer not to tell you”.
He preferred taking his chance in court against the chance of losing his life.