I think it also helps to understand why they find themselves in that situation in the first place:
because of kamma previously committed.
That’s why it’s so essential for people to do merits and gain a more favorable (future) environment that’s conducive towards the path.
For that reason alone we should be mindful of our interactions with others even if we are not in a position to share Dhamma. It could be because others are not open to listening or perhaps because the situation doesn’t allow (for) it.
For instance, I regularly work with young kids in everyday life. I always try and create time for them to do something meritorious, even if it’s just, let’s say, a drawing activity. For example, they recall a good deed that they’ve done and then draw it out. Then they will be reminded the whole time of that good deed. I have no control over what happens when they are at home, but I can at least encourage them to think/speak/act meritoriously while they are around me. All little things add up.
Around adults, conversations can sometimes be steered in a more favorable direction as to provoke more wholesome thinking and speech.