There is no harm in giving a woman perfume as a gift, because a gift creates love and removes resentment, and the one who gives the gift also receives a reward. If the one to whom it was given uses it in a forbidden way, the sin will be on her.
But if it is known that the woman who was given the gift goes out into the marketplace wearing perfume, and that she will also use this perfume when going out to the marketplace, then it is not permissible to give her perfume as a gift, because this is a form of cooperation in sin and transgression, and Allah the Exalted says:
«وَلَا تَعَاوَنُوا عَلَى الْإِثْمِ وَالْعُدْوَانِ»
“And do not cooperate in sin and transgression.”