I would say 'alone' has a physical aspect to it, whereas 'lonely' is a mental state/feeling.
Alone - no one else physically present. A person can be 'alone' but not feel 'lonely'.
Lonely - Feeling like the only one, wishing for company.
Like I said, I'm not a teacher, only a native.