by Visvanath Ratnaweera.
I don't know about Moodle 4.x. But in 2.x and 3.x when you restore a course in an older Moodle, a warnung came. One could restore nevertheless. I can't remember it failing because of this.