The order that protects you: backtest, paper trade, forward test, then automate. Plus the honest cases where you should not automate a trading strategy at all.