DON'T BUILD FORTS WITHIN 3 TILES OF YOUR CITY!
Improvements (farms, etc) make the yields of tiles bigger so your city gets more production or food or whatever. Building forts within 3 tiles of your city (the limit where cities can work tiles and get more resources) is a waste.