I don’t think the appreciation of God’s revelation to humanity is expressed nearly so much in Catholicism as in Judaism.
In Judaism, there is even an explicit day of the calendar which is a feast about the giving of the covenant law. The Jews are elated that God has chosen to reveal his law so that they can obey it. Read Psalm 119, for example.
Read Psalm 1, The righteous man meditates on the law of God night and day and does not walk in the way of sinners or scoffers (atheists).
Read right at the beginning of the Bible, around Genesis 4:6, after Cain kills Abel, and God is making a speech to Cain about how sin lurks around us, and then God says “master it.”
This is the expression in scripture of using our free will to overcome sin. And, so, we have to take a step back from all sin and temptations to sin, and learn to use our free will to master our inclinations.
In the case of pornography and masturbation, we all have to learn to recognize the temptations (in the first place) and then to distance ourselves from them. The book of Sirach advises us to flee from sin as from a snake. Someplace else, I think it says to treat sin as poison, because it poisons our relationship with God.
In the positive expression of free will, in Deuteronomy 6:4ff, God commands us to pray “Hear O Israel, the LORD is our God, he is the one and only. You shall love the LORD your God with all your heart, with all your soul, and with all your strength.”
with all your heart: be in constant prayer with God
with all your soul: love the LORD even unto the shedding of your blood, to death
with all your strength: love God with all our determination and resources, including money
We are all challenged with this command.
The Hebrew word that is translated “command” is also translated “blessing.” When we obey a command of God it is a blessing. Why? It is a blessing because we know that we are doing God’s will, and we should be blessed by knowing that.
When you avoid pornography and masturbation, you are obeying God’s will.
When we sin (in any way) we are causing God to suffer, we are offending him. consider what Jesus underwent for our sins.
On the negative side of the issue, the book of Sirach also reminds us that we will be repaid for each and every of our sins. The pornographer will be punished for every copy of immoral photos that is published.
AsSt. Paul says, we must be sober and watchful. We must run the race (against sin). We are in spiritual battle for our souls and eternal destiny.
It matters. This is not based on irrational fears.