Any structure that is upright needs a strong foundation. Having a strong relationship with the Lord Jesus Christ is the foundation that everyone needs to be upright.
When you have a relationship with the Lord, He becomes a part of you and you a part of Him. If you think about relationships, what really makes up a relationship? To have a relationship with someone means you have some significant connection with them. You communicate with them, you think about them, and you can associate feelings for them and with them. This is how the Lord wants to have a relationship with you. If you feel guilty and have a sense of regret for the sin that you have done in God’s eyes, then that is repentance. Repenting is feeling regret, remorse, and sorry for what you have done, especially if someone else’s heart is involved. If this is how you feel when you sin in God’s eyes, then a relationship is there. If you are trying your hardest to turn away from sin, He can see that and He wants to help you just as anyone that you have a strong relationship with would. He wants the relationship to grow and wants you to ask Him for strength and to know that He is right there with you no matter what the conditions are.
A relationship with the Lord provides you with a foundation that will hold your framework upright and together. The more you allow the Lord into your life the deeper the relationship becomes. The deeper the relationship, the deeper the foundation. The first building block to a strong foundation with the Lord is obtaining knowledge of His Word.