Samson (the Light) left his parents and went to Gaza (the fierce enemy) where he saw a prostitute.
Jesus left heaven and came to be with his people Israel.
Often Israel is referred to as adulterous or a prostitute because she substituted relationships with other countries and idols for her relationship with God.
Jesus' fierce enemy was the leadership men instituted --primarily the religious leadership-- which would not come into the light where they could see their condition.
Samson went in to spend the night with her.
Jesus --the light of men-- came into the darkness to be with men.
The enemy was told that Samson was there.
John the Baptist announced His coming
The shepherds were told about His coming by angels
It was even proclaimed by heavenly signs
They surrounded him and prepared to kill him at dawn.
The political leaders plotted to kill Jesus as a child
The religious leaders also plotted to kill Him --as described by prophecy.
He left at midnight when his enemies weren't expecting it.
The leaders were expecting the Messiah to appear and reign as king in view of the whole world. But He left before they really knew who He was.
When He left the prostitute, Samson took the city's security (the gate's doors, two posts and bar) with him.
When He died, Jesus took away the false security that the religious body had been hiding behind (the law).
They considered their access to God to have been through keeping the law --like the priests access to God in the Holy of Holies was through the veil. The access was moved; it is now through Jesus who is up in heaven.
He carried the doors, posts and bar on his shoulder up the hill in front of Hebron (the place of meeting).
The doors, posts, bar --much like the door and and its frame of a house at Passover-- were a shadow of the cross and what it represented. It was the full payment for the sins of the entire world.
The new city (new Jerusalem) that will come down from heaven will not require any doors.