Fear should be the reason we avoid evil. If you were walking a bridge in the air, and you can fall off without railings, you would not want to fall off. However goodness as in non-obligatory actions, it's hard to motivate that purely on fear. That requires love and hope, as the fuel. Hope for more reward. We can't benefit God, so acting for God means, we act so he can reward us with his relationship and vision of him and traveling to him.The fact is, if fear is the reason you are moral. You're not moral.
Saying one is only doing something because they fear reprisal is illogical.
If your only reasoning for not doing something is "I might get caught" or "some deity will punish me", then you aren't a moral person to begin with.
Fearing God if God is open and in the clear has no merit. This is why in day of judgment, fear of God and faith in him doesn't benefit. However fear of God while God is unseen is noble and it's as noble as it gets. Because we can easily just deny and turn away from the being to do away with the fear. But have patience on the fear is honorable and noble.
There is a drink in paradise - Quran says this is what competition should be about by those who compete. But what do we compete for if not God and next world? Vain things like wealth, prestige, ranks, fame, time for pleasure, and ego.