Pretty easy to go infinite on this by focusing on attack speed. My experience was that range maxes out in effectiveness very quickly, damage makes no difference if it's not enough to reduce how many hits an enemy takes (and it takes a lot of investment to reach those points), and health only matters when you're losing, so apart from upgrading the tower twice and getting some bonus gold, it's just upgrading speed until it becomes impossible to lose.