That is often a loaded question because every bike has different issues.
This is a general list of things to look for on every dirt bike.
Does the ad say something like "Just needs the carb adjusted"
Or "Runs great, just needs a little work."
Or, "It's a easy fix, I just don't have the time to fix it"
WARNING!!
These ads are usually totally bogus..
How long does it take to adjust a carb?
It will take longer to warm the bike up then adjust the carb.
If it's a easy fix, ask a friend to do it for you.
If your busy any good friend will help you out, especially a riding buddy.
Now, what to bring with you to look at the bike.
If you have a bike stand, bring it.
If not a 3.5 gallon pale and a short piece of 2X4 will work most of the time.
Bring some basic hand tools for removing the plug, seat, and checking the clickers for the suspension.
If you have it a compression gauge that's good but a leak down tester is better
A couple of shop rags and a can of carb cleaner for inspecting greasy area's.
You might also bring a clean pan and a funnel.
If the seller tells you that work has been done, don't be shy about asking for receipts.
They don't always tell you the whole story but they are further proof that a seller is honest.
Look at the general appearance of the bike.
What do you see?
Is it dirty, worn looking, or does it have ill fitting parts?
DANGER!
If it's dirty it could be a signal of poor maintenance.
Not always but it's tough to maintain your bike if it's filthy all the time.
If it looks worn that is usually a sign of it being worn out.
If the parts don't look like they fit correctly, they may not be the correct parts.
This brings up another point, MAKE SURE THE BIKE IS THE YEAR BEING ADVERTISED!!!!