sur means 'on' and dans means 'in' , they are easy to distinguish, however they have some usages that are figurative and abstract ,that come in the form of a mode of expression.
As for "à" and "en" ,it is more difficult to differentiate between them.