Double stick tape barrier. They will NOT walk on something sticky.
;)
The chili pepper thing works but only as an after thought. Cats associate this with that and won't figure it out until they go back a few times and by then the damage is already done.