"Peter didn't know what the Hell he was talking about. He had no idea what the mountain-top experience really represented...Moses & Elijah represented encouragement and a reminder to be attentive to faithfulness, because dark days are coming..."
Here's the tl:dr for the lazy: Judges does not present Samson as a hero. The context and structure of the book, as well as the context and structure of Samson's story all point to the same thing: Samson was a self-absorbed human being manipulated, not used, by God. He is an example to be avoided, not upheld.