If you were already planning to upgrade your Teslas because they're the defenses that help you the most, I'd say upgrade them and use the remaining gold on walls, like someone already suggested above. Or if all defenses are of equal importance to you and you have enough resources to spend, then maybe go for the most expensive first?
"If I look back I am lost." TH 9 l GG 840m l EE 733m l HH 2m l AQ18 / BK18 l Legos 135 / Lavas 115