How do I handle my teammate who does his task related with project very late just before the deadline?
The question might be out of scope, but I will give you my opinion.

You can't control what your teammate does. Working in a group setting, you will different approaches to the work, people who are like your teammate, people like you, people who never show up for example. The goal here is whether or not it will impact the bottom line: making sure that the project is:


Turned in
Of high quality


If you work together in the future, address this issue and schedule team sessions ahead of time and manage your time well. What I did when assigned a group project was to literally schedule all of the meetings for the entire semester (or quarter for you) this way, they don't have an excuse for not showing up and doing the work. Weekly meetings will allow you to check in periodically with your individual contributions and direct how the overall strategy would look like.

If you won't, then it will not affect you. Move on.