Adverse effects are possible. You are suggestions dangerous actions or words. The suggestion is that one’s intentions may have negative effects. This phrase is also used as a response to don’t talk about something bad as that may attract it to occur. (Compare to Give him enough rope and he’ll hang himself.)
“If you are going to cut down that tree, you are asking for trouble.”