A man must do what he feels needs to be done, even if it is dangerous or undesirable. Sometimes said ironically. It might be dangerous delivering water to the refugees, but a man’s got to do what a man’s got to do.
https://idioms.thefreedictionary.com/a+man%27s+got+to+do+what+a+man%27s+got+to+do