It seems that the malach who attacked Ya'akov in P' VaYishlach did so as he was completing the process of transferring his family across the Yabok river. Rashbam explains that Ya'akov's plan was to flee from Eisav. He first ferried his family out of danger and then was going to flee across the river himself. However, the malach interrupted those plans. Hashem did not want Ya'akov to flee; Hashem wanted to demonstrate that his promise of protection would be fulfilled. Chizkuni goes a step further and adds that the reason Ya'akov got a patch on his leg was precisely because he was trying to run. When Hashem gives you a mission, you can't run away.
Even though Chazal are critical of Ya'akov for having sought out Eisav and his having sent messengers to him, and even though Ya'akov was fearful that his zechuyos would not be enough for him to escape unharmed from an encounter with Eisav, Rav Gifter writes that we learn from these sources that once Ya'akov made the decision to invite the encounter, backing out and fleeing was wrong. To avoid waking the sleeping giant of Eisav does not prove any lack of bitachon. However, once events that encounter has been precipiated, fleeing at that point shows a lack of trust in Hashem.