Just look at the root of the words - cross and long.
If you go across something, you cross it:
Sail across the Atlantic ocean
Walk across the road to the opposite side
Drive across the desert.
If you go along something, you move parallel to something long.
Walk along the riverbank.
Run along the path.
Stroll along the beach.
Semplice, non è ?