Set the trigger to player touch or action button. Best idea would be action button. And if they accidentally press the button, that's their fault, isn't it?
Another way to prevent this would be a choice, saying "Jump ledge?" then "Yes", "No". When yes run the aforementioned conditional, when no leave blank. But that would seem a little silly. Your choice.