The word "to" causes a lot of confusion for English language learners. Why? "To" can play very different roles in English grammar. "To" can be a preposition, or it can be a verbal particle. It can play both of these roles in the same sentence.
For the full text, go to https://www.difficultenglishexplained.com/two-different-roles-for-the-word-to/.