You're running into some limitations in how what we call the background code or teachpack set up the game. The code imported at
import shared-gdrive("bootstrap1-game-teachpack.arr", "0B32bNEogmncOa0w3SzVackFaVGc") as T
is making these decisions about where the danger and target start (and randomizing them), and you have little control over it when using the Bootstrap: Algebra setup.
If you want to have more control (even up to getting Madeleine dashing and wall-bouncing over those spikes; love Celeste btw) it might be useful to look at some of the material from Bootstrap: Reactive:
This course lays out how to build games and simulations where you have much, much more control than in the Algebra game setup, which it seems like you've somewhat mastered.