If you are getting attacked, you are untouchable if you can get on the defensive properly. here are a list of things to do to help defend your city if you are at a LOW level and you want to defend from people in higher levels.
1. Keep a ratio of 2 archers to 1 archer tower (this will help use your towers full potential)
2. The recommended amount of archer towers is 5k-6k (attackers will usually hesitate to attack at around that amount)
3. 8,000 scouts are recommended, this is for anti-scouting (If your enemy can't scout you then he/she will likely not attack)
3. Get the things listed below to level 6 (that is the min, but recommended high as possible) GET ALL OF THESE TO LEVEL 6 BEFORE researching/building anything else.
-WALLS
-INFORMATICS
-ARCHERY
-BEACON TOWER
4. Have a hero with high attack, the hero/mayor with the highest attack that is idle will automatically lead your defense.
5. researching engineering will help but it isn't a major thing.
5. If you don't have a lot of resources it is better to leave you gates closed than to have em open. Plus You can also save troops
YOU CAN ALSO HIDE YOUR RESOURCES IN A VALLEY NEAR YOU!! This will prevent them from getting plundered (better that warehouses
) and you can leave your gates closed so it will save troops