Some people reason that an iOS device is safer from a security context than an Android device, because an iOS device does not simply allow users to install apps from any source other than the App Store while Android has a user configurable setting for this. Obviously there are many more reasons why one or another is safer, but those things left aside. Other real life examples can include warning the user that he or she is connected to a public network or even blocking the use of a program when connected to a public network.
Especially in the last example the user is not in control and this made me think about the line between security (if this even is security) and "user freedom".
Is user-education a security measure in context of the given examples or do we have different names for these kind of measures?
Bonus: Are there security guidelines or best practices on when to educate the user (warn) and when to block the user from doing specific things (like installing an app)?