At Stepik you can only set such restrictions within modules (Paid/Enterprise).
In module settings (Course Syllabus) choose what causes the opening of a new module and how many points one has to gain for that.
The learners will see such messages in the syllabus:
At Stepik you cannot fully restrict the access to the further course if learners failed to finish an assignment or a lesson.