Acknowledge before processing

It might sound stupid, but is it possible to acknowledge a message before processing it in Pub/Sub?

In Pub/Sub, acknowledging a message before processing it is generally not recommended, as acknowledging a message tells Pub/Sub that the message has been successfully processed and can be removed from the subscription. If you acknowledge the message before processing it, you risk losing the message in case something goes wrong during processing since Pub/Sub will not attempt to deliver it again.

I totally agree with you. I was just wondering if there is a way to acknowledge a message before processing it. How can we do that?