Read the description carefully. Anything vague in the description should be a red flag. The seller needs to state categorically that everything works as it should and that all parts are present - body, battery, charger at the least.
Photographs of the camera should be well lit and in good focus. Common technique is to use lighting and poor focus to hide defects. If you cannot see a part of the camera in the photographs, assume that part is damaged.