Skipping major updates isn’t supported as @Reiner_Nippes already mentioned. Please keep in mind that it might also be necessary to update to a newer PHP version before you can upgrade Nextcloud. So please check the system requirements BEFORE each version update