Support students until they are proficient with content from the beginning of the course as subsequent content will be all the more difficult to learn without mastery of prior content, particularly in introductory CS courses.
Research has found that when course content depends even slightly on prior content in the course, struggling students can fall far behind very quickly.