I get that we want to contribute to the development and education of those most important to us because of the moral duty we have. But you are correct, if for instance, the person does not want to learn or even if that is the last thing he or she wants, then it is even stressful and not even courteous to attempt teaching that person. Sometimes it is better to leave them alone so that they can discover it on their own as they may be more willing to learn. In time, they will find this out for themselves and quite possibly they will then understand why it was we were attempting to convey to them.
For instance, one of my cousin used to be so close to me, and you might have this idea that things happens between cousins haha, so I stopped sharing my actions with him, as I thought when I share something like education, factors, causes or anything about what I will be doing, something happens, most of the time, he only shows interest to know, and don't want to use it for himself.
So I stopped sharing, as if the other person is only listening and not acting, not showing interest there is no point in sharing, as in return we won't be getting something useful, like even an advice, so that's what I did and I share him about my crypto life, he did not showed interest and recently like few months ago, I told him about some of my investments in crypto and he felt bad that I did not share with him, while I shared he did not showed interest.
I have faced this, so I know, but this is the best thing we can do, if they don't show interest, let them be as they are, a time will come they will regret it, and realize their mistake.