It's very complicated, but if you want a general rule: "make" usually means that something is created, but "do" usually means that a task was completed.
He made a mistake. (He created the mistake.)
She made a suggestion. (She created a suggestion in her mind, and then told everybody what it was.)
They make a good team. (When they play together, a good team is created.)
He did his homework. (He was given a task by his teacher, and he completed that task.)
She does her job well. (A job is a task we must do for money. She completes that task well.)
They did the shopping. (Nothing is created here; the shopping is a task, and they completed that task.)
There is a lot more to it than that, but this is the simplest rule. It can help to remember this.
Student or Learner