Buy the best gear that you can afford.Buy the most appropriate gear that will enable you to get the images you want – I am talking here about camera bodies and lenses.
And then learn that gear inside out. Practise with it, try out all the things your gear can do.
Once you have exhausted the capabilities of your camera and lens(es) buy new gear only if it will help you take better images.