Yep, just gotta scout to 4 (when you're adjacent, or 5 if you're two spaces away) and when you get to the tile it'll avoid that scenario.
Thank you!