The two primary ways to do that are prayer and the Scriptures. I would give those same two answers for a lot of areas of spiritual growth, spiritual discipline, and spiritual development.
The more I am taking in God’s Word and God’s Word is being for me a mirror that causes me to see myself as I really am before God (James 1:22–25), the more it helps me recognize my sinfulness and my need for the grace of God.
Prayer, particularly prayer that includes the element of confession (which should be a regular part of Christian practice), keeps before me my sinfulness and neediness before God.
Those are the two pillars that help me stay on the right path in terms of seeing God as He really is and seeing myself as I really am.