I put that basket there to stop the baby from getting in behind the couch.
この場合、次のような言い方ができますよ。
ーI put that basket there to stop the baby from getting in behind the couch.
「赤ちゃんがカウチの後ろに入らないよう、あそこにカゴを置いたの」
to stop someone from ~ing で「人が〜するのを止める・人が〜しないようにする」
ご参考まで!