Does restoring from an iCloud backup enforce installation of the latest iOS?

No. Erase all content and settings keeps your current iOS. As long as you don't use an iCloud backup from a device with a newer iOS version you will be fine.