And what operating system you recommend that would protect you from the stupidity of the user? Linux? MacOS? Because both would equally fail to this just as well.
Use an OS with Admin/root privileges and then complaining why you can pwn said computer is stupidity, isn't it?