In general, the smell of air freshener from neighboring apartments should not directly contaminate your uncovered food or make it toxic to eat. Air fresheners typically release volatile organic compounds (VOCs) into the air to create pleasant scents. While inhaling high concentrations of these VOCs may have adverse health effects, the amount that would transfer to your food through smell alone is usually negligible.
However, it's important to note that if the air freshener is being used excessively or in close proximity to your food, there is a small chance that some residue or particles from the air freshener could settle on the food surface. This could potentially affect the taste or odor of the food, but it's unlikely to pose a significant health risk.
To minimize any potential concerns, you could cover your food or store it in a sealed container to prevent direct exposure to the air freshener's scent. Additionally, maintaining good ventilation in your apartment can help dissipate any lingering odors.
If you have specific health concerns or notice any unusual reactions after being exposed to certain smells or substances, it's always advisable to consult with a medical professional for personalized advice.