The advice wasn't poor. It was sound advice. Anakin just didn't listen to it because he felt that he failed his mother and didn't want to fail again. He let his promise to stop people from dying control his every actions. The Jedi would screen the candidates to make sure that they weren't corrupt. They never wanted the power and control, otherwise they would have taken it long ago. That's why the Sith Order came into existence in the first place. The Jedi who became the first Sith did so because they believed might makes right and that they could do a better job running the show, rather than being the indentured servants of the Republic. Mace had no intention of running things. He just wanted the power to be returned to the Senate where it belonged. Except he does sacrifice his friends by stopping the fighting. By shutting down his Lightsaber, Luke has chosen to let things happen as they may. If that means the Alliance falls, then it does. He accepts that outcome and does so willingly. It wasn't complete detachment. It was controlling your emotions, which a lack of control is dangerous for a Jedi. That's why the Council long ago established the guidelines of loving people, but doing so unconditionally. Doing so through compassion and being selfless. In order to survive this, Anakin needed to stop being afraid of losing that which he cared for and then, and only then, would everything crystallize for him. There's a right way to go and a wrong way. One of the right ways to go is to do so without being controlled by your emotions. They weren't celibate, but they couldn't marry. They could love people, but they had to love them without being attached. Jealousy, fear, obsessiveness, possessiveness, greed and anger are the negative aspects of love. That's why Anakin's downfall played out as it did. This was not the first time a Jedi fell to the dark side because of attachments. It was the temptations from having significant others that caused problems. Look at how Luke reacted to his sister being threatened. He almost killed his father twice because he couldn't get a handle on himself. The danger in being a Jedi is that threats will come in all shapes and all sizes and with a power like the Force, if you do no master it, it will control you and drive you to do terrible things. This is why Obi-wan said it was a dangerous time for Luke when he was prepared to leave Dagobah. Now, that's not saying that having loved ones in their lives is a bad thing as we see the Jedi did change things. But it is easy to understand why they went the route that they did. Fighting for salvation isn't about attachment or detachment. Luke is thinking of his father and believes that he can save him, but he is doing so out of compassion for his father. An unconditional love that he has for his father. Luke isn't doing this for his benefit. The only desire that Luke had was to stop the Alliance from being destroyed and trying to prevent his sister from being dragged into the Jedi/Sith conflict because she isn't ready to face it. This part is what almost leads to his turn to the dark side. Luke had to accept that the Alliance could fall, as could his loved ones. Once he did, he was able to become a Jedi Knight as this was his trial. Begging his father for help isn't about attachment. It is a compassionate plea for help. No, but the fact is that he did it. He knew right from wrong and what he was doing was wrong. That's why he said, "What have I done?" He didn't want Mace or Palpatine to die, but he had to make a choice and he chose poorly. The minute he left the Temple, he had broken his oath to the Jedi Order, to democracy and to his loved ones. Sometimes, you have to make a sacrifice if it means the greater good can be achieved. This happened on Geonosis. Obi-wan told Anakin that if their roles had been reversed, Padme would have done her duty. We saw that when she opened fire on Dooku, instead of rushing in to check on him. Anakin needed to sacrifice Padme in order to stop Palpatine and because he couldn't do that, he condemned himself and the galaxy to darkness and despair. Luke needed to sacrifice Han and Leia if it meant stopping the Sith. Something he wasn't willing to do on Dagobah and was almost not willing to do later on. When Luke surrenders his Lightsaber, he has made his choice. When Anakin saves Luke, he does so because it means sacrificing himself for his son.