You can prevent students from changing files that contain tests for autograding, or other important files in the assignment repository.
Under "Protected file paths", type relative paths within the repository to protect.