It depends on how you’ve implemented fall damage, but here’s a general suggestion:
Your best bet may be a simple check before applying the damage to see whether what you’re landing on should inflict fall damage. You can do this via tags or class checking.