To answer the real question, the HP IV cannot be increased & decreased in-game, only on online battle sims like PO or Showdown. The IVs are set in stone one the Poke is hatched from it's egg, caught in the wild, or given to the player as a gift.
It does not matter if Shedinja's HP IV is 31 or 1, it will always have 1 HP.