defaults read -g com.apple.mouse.scaling
# Fastest you can get using the Mouse option in System Preferences is 3.0
# Now let's set it to 5.0
defaults write -g com.apple.mouse.scaling 5.0
No need to reboot or else, the effect takes place immediately in MacOS Monterey.
defaults read .GlobalPreferences com.apple.mouse.scaling
# 2.5 was the default on my Monterey, 4 is much better
defaults write .GlobalPreferences com.apple.mouse.scaling 4