"It is useful to me" is a complete thought and doesn't need any further information
However, "It is useful for me" is the beginning of a thought and needs to be completed.
Let's say 'it' is your hand. It is useful for me to tie my shoe. It is useful for me to cook.
I hope this helped!