A note on Zagreb indices inequality for trees and unicyclic graphs