The essence of taqwa is to make a shield that guards against Allah's anger and punishment. That shield is to obey His commandments and abstain from His prohibitions.
Ibn Rajab al-Hanbali
What taqwa looks like, a definition by Ibn Rajab. If taqwa is present then it acts like a shield against what Islam prohibits which means a person with taqwa will stay away from haram willingly.