First, you must know God well. Attain union with God is the perfect way to know him. Once you know him most intimately, you'll know his will, and his plan would be for you to follow his will. Beware that if you sin, you ruin his perfect plan for you, for you have gone against his will. So, remain in union with the Lord to know his plan and remain holy to know that you are following it.