So to pin point where to use which one or what is the appropriate preposition, in a nutshell is difficult. However, you might have obseved that ‘to’ has a special application of forming infinitive when followed by simple form of a verb. You have study a good grammar site and practice a lot to become conversent with preposition in general. See the some common uses and use of 'to' as infinitive (underlined)
We're glad you could make time to visit our site, even though it is for a brief period. We treat your company with respect for quality and service,
We are here to help you find the best pre-owned vehicle for you and to explain, how to examine the bodywork, what to look for with the engine and how to check the fuel efficiency.
Student or Learner