to prevent this problem, you can put something like banana, oranges or somethings that had a nasty smell or even huge things, many cats arer sensitive to those things, so they would not have excretion in your little garden ~
hopr that I can help you ~