If their mania is aggressive/threatening, I’d avoid engaging. But less severe cases I would suggest talking over at an agreed place, with 1-2 other people around as referees. If they’re not threatening or aggressive, it may be possible to get them out of their own head.