I think that if you made an intention and it didn't work out, it meant that God did not intend it to for whatever reason.
For example, if someone cheats on their spouse, could you say that it was the spouse's (the one who was cheated on) own unconscious intention to do so? Maybe not, unless acts were made deliberately to shun the other partner. But if the person is doing good and treating them fairly, and the other goes and is unfaithful, it is the cheater who is at fault.
Gibran in "The Prophet" says that if a woman is unfaithful, we should look at the man's heart (which caused her to be unfaithful). That may be true to some extent, but it was the woman's own decision to cheat on him not his. It's all about intention. It was her intention to be unfaithful to him, it was not his intention to be in that situation- who wants to be? So her intention to do what she did affected him. And maybe it would work out for the best where he could find someone who would treat him better. Everything works out for the best.