After Moses, Joshua led the people. But when Joshua died, no leader was named. There were then a dozen judges, 6 with little said about them and 6 considered "major" judges.
Samson was number 12. During the period of judges the people were in a spiritual, religious, military, and moral decline. Each Judge was worse than the last. And by the time we get to Samson, in chapter 13-16 of Judges, the poor guy had to fight the Philistines single handedly. He didn't even have an army to back him up like the previous leaders before him had. So in that sense, I feel bad for the guy.
But Samson was not a moral person. He took a vow to be a Nazarite but breaks the vows, gets involved with women, fools around with the Philistines, and ended up killing as many of them in his death than he did all the rest of his life fighting them.
But it wasn't just Samson, if you look at the judges before him, Jephthah sacrificed his daughter, yikes. Gideon, while I love the story, had very weak faith. Ehud got his job by assassinating the last guy. It was simply a bad period in the history of the IIsraelites