the Animation function takes a SpriteAnimationType and deals with it by itself. The ByFrame type tells Animation function to increase frame by 1 every time it's called. You can't subtract 1 from a SpriteAnimationType, that's like trying to find the answer to 10 + orange. Instead, if you are indeed animating by frame, the simplest method of animation, that can generally be replaced with a different type of function:
Type: Do
Function: +
Input 1: frame
Input 2: 1
Output: frame
This is generally the same thing. If you change the function to - it will animate backwards instead of forwards. Or you could change the 1 to a -1 for the same effect without having to change the function. I don't know if it will work correctly if frame is negative, though. You'd have to do a bit of work to make sure it didn't go negative if it doesn't work when frame < 0.