This is an Ad Hominem and, therefore, a false way to argue your point (or, in this case, to shut your opponent up). Just because a person is not an expert in some area doesn't mean that person can't make a truthful statement in that area.
This is a lazy man's way of arguing a point.