The best way to avoid buying an abandoned game is to first check the last post from the developers on steam and the date it was posted. If they've been dark for more than a few months that's a red flag. Then check the steam reviews for people saying the game is dead or abandoned.