It's rather Linux-oriented question than Nginx-related.
If you wan to save Nginx intact - try to search how to pin package version on your OS.
In this case - your package manager will skip update for specific software, like nginx, so no changes in package version and configs will not be performed.