It should be possible to prevent the user from going back in the navigation stack using the navigation bar back button / navigate back flow function / iOS swipe-to-go-back / Android native back button. Additionally, the user should be able to react to the "about to navigate back" event, run some logic and then decide to really allow/disallow the navigation to happen.
Use case would be e.g. there's a form open that is invalid.