"God's providential care had been over Samson, that he might be prepared to accomplish the work which he was called to do. At the very outset of life he was surrounded with favorable conditions for physical strength, intellectual vigor, and moral purity. But under the influence of wicked associates he let go that hold upon God which is man's only safeguard, and he was swept away by the tide of evil. Those who in the way of duty are brought into trial may be sure that God will preserve them; but if men willfully place themselves under the power of temptation, they will fall, sooner or later. PP 568.1"
"Wherefore let him that thinketh he standeth take heed lest he fall."
Both passages warn against complacency and the danger of falling into temptation. Samson's story serves as an example of this principle, echoing the warning in 1 Corinthians 10:12.
"The very ones whom God purposes to use as His instruments for a special work, Satan employs his utmost power to lead astray. He attacks us at our weak points, working through defects in the character to gain control of the whole man; and he knows that if these defects are cherished, he will succeed. But none need be overcome. Man is not left alone to conquer the power of evil by his own feeble efforts. Help is at hand and will be given to every soul who really desires it. Angels of God, that ascend and descend the ladder which Jacob saw in vision, will help every soul who will, to climb even to the highest heaven. PP 568.2"
"For we wrestle not against flesh and blood, but against principalities, against powers, against the rulers of the darkness of this world, against spiritual wickedness in high places."
The EGW passage describes Satan's attacks and the spiritual battle, which aligns with the theme of spiritual warfare presented in Ephesians 6:12. While not a direct quote, the concept is clearly present.