Depends. Robbery? Fight on. Takes a ton of damage win or lose? Have a farewell fight with Lomachenko or a light-hitting guy.
It's time win or lose. He is a legend and we will not get another Manny Pacquiao. We do not want to see a situation where he ends up like Abdusalamov or Stevenson.
As some already mentioned, unless he is in a difficult financial situation she should have retired after his first win after the Mayweather loss.
If he does he should retire from the top level and ppv's at the very least. If he wants to hang around after against lower level competition either for money or to stay active that is on him. If he wins though I'd like to see him go for Spence or Crawford, see whats left in the tank till one beats him.