Get an electric fence with some chicken wire and drape it over the edge. When the cats jump up on it to get over the fence they will get a poke. They will only do it once. They sell these sort of things in the pet store to train cats and dogs from getting where they are not supposed to go.