Hello @haseebkamboh
The correct way is to put your website on the staging server.
We have an upgrade guide after each version.
You can get help from the guide to upgrade your Bagisto version.
https://github.com/bagisto/bagisto/blob/v2.2.0/UPGRADE.md
Thanks & Regards