Please note I'm not a mother tongue speaker, but I remember studying this rule:
I like + ING = I enjoy doing something because it's fun
example = I like going to the cinema
I like TO VERB = I do it because I think it's worth it, because it's good for me, for my job, for my health etc.
example = I like to get up early so I have time to study
I like to eat healthy food to keep fit
Hope it helps and wait for a mother tongue to confirm
Student or Learner