@Hannah Can you think of any preposition that isn't
for or
to which can accept not only a gerund clause but also an infinitive clause? I cannot. We may have to wait for John Lawler to shed us some light on this, or Greg Lee or BillJ, or Shoe or Nohat, or even Araucaria (although the last of those has funny ideas about prepositions to start with :). —
tchrist ♦ 6 mins ago