From the outset this was YHWH's purpose for Samson as told to his mother.
8 Then Manoah prayed to the LORD: "Pardon your servant, Lord. I beg you to let the man of God you sent to us come again to teach us how to bring up the boy who is to be born."......
12 So Manoah asked him, "When your words are fulfilled, what is to be the rule that governs the boy's life and work?"
13 The angel of the LORD answered, "Your wife must do all that I have told her. 14 She must not eat anything that comes from the grapevine, nor drink any wine or other fermented drink nor eat anything unclean. She must do everything I have commanded her."
Here we have parents who know their inadequacies in nurturing and training a man who would deliver the Israelites from the Philistines.
Who should capture his heart but a Philistine woman! The first "rule of engagement" was more literal than Manoah or his wife imagined.
It is worth noting that God begins a work, picks a fight and lays out the enemy - How he achieves this may look odd to us. Usually when we consider Samson esp through the lens of Sunday school, we are shown a man driven by anger, vengeance and lust. Samson is an odd fellow, it will be interesting to hear his story in heaven! Would God say he has been misjudged or misguided?