The goal of every Muslim is to end his or her life in the state of perfect Islam. This is the condition of being free of sin. The perfect Muslim is the one who performs all of the obligations and avoids all of the sins. Such a person dies without sins on their record and in the Hereafter will be placed immediately in Paradise. This person will be safe from the punishment in Hellfire that is suffered by the sinful Muslim.
The only way for someone to achieve perfection in Islam is to first learn about the obligations and how to perform them and to learn about the prohibitions and how to avoid them. Such a person is in a position to live a good life, one that is filled with valid acts of worship. Indeed only the Muslim who learns about the religion from reliable and trustworthy sources knows how to perform an act of worship in the correct way.
The correct way to perform an act of worship is the way that is in agreement with the teachings of the Prophet, sallallahu ^alayhi wa sallam. This is the way that leads to the proper completion of a religious obligation. This is the way that is accepted by Allahu ta^ala and that is promised an everlasting reward in the Hereafter.