When it says follow your heart, it really means follow your intuition, because intuition is your heart knowledge.
Sometimes God leads us by way of the heart because the heart seeks out the hidden secrets but opposite of following the heart is to listen to others who most definitely don’t know what is the best for you.