It’s going to be difficult to stop teachers seeing student information because they (normally) need permission to manage and view users and user information in their course.
You could hide the tab using custom css. This will work for the Boost theme:
[data-key="participants"] { display: none; }
What specifically are you trying to achieve though? If we can understand more about that, it might be easier to assist.