Is it possible to freeze/pause a user's membership?

If you want to deny them from logging in, The best way would be to use a 3rd party access management system and deny their access using your IAM system instead of discourse.