These verses were written to born again believers.
Hebrews 12:5-7 "…5 And you have forgotten the exhortation that addresses you as sons: “My son, do not make light of the Lord’s discipline, or lose heart when He rebukes you. 6 For the Lord disciplines the one He loves, and He chastises everyone He receives as a son.” 7 Endure suffering as discipline; God is treating you as sons. For what son is not disciplined by his father?…"
Also written to believers:
1 John 1:9
"9 If we confess our sins, He is faithful and righteous to forgive us our sins and to cleanse us from all unrighteousness."
Only believers have an advocate with the Father! Yes believers do sin, but the difference between believers and non-believers, is that believers hate their sin and are tormented by them, they eventually confess and forsake. Non-believers have no conscience over their sin, they love it, brag about it and become hostile when they are told it is sin.