Configure Swipe between full screen apps
If your mouse has it's own drivers, much like Razer Synapse, you can assign ^ control+← and ^ control+→, the shortcuts for moving left and right a space, respectively, to certain mouse buttons.

This cannot be done natively in macOS Mouse System Preferences. A third-party app/driver is required to do this.