Can shows your ability to do something. May shows an option to do so.
A. I think you cannot climb that mountain.
B. I definitely can !
A. May I come in please ?
Use "can" when you want to communicate that you are able to do something. Use "may" when you want to communicate that you can do something but you might choose to do it or not.