Protecting computer from malware, spyware, bloatware and slowing down

Hi,
I just bought a new MacBook Pro and would hope to keep it running in good shape. Anyone with any advice on things I can do to avoid inadvertently getting malicious software? Which browser is the best? Any recommended extensions? Free or cheap anti-virus software I can get. Programs or websites I should definitely avoid etc.
