Avoid buying iCloud locked iPhone by running IMEI number at official Apple iCloud Activation check page.
Make sure to get IMEI number before buying an iPhone and check Activation Status. CLICK HERE
To find IMEI number follow these steps:
Tap General > About.
Scroll down to locate the IMEI number.
Tap and hold the IMEI number to bring up a Copy bubble.