Where any petitioner in an Indian child custody proceeding before a State court has improperly removed the child from custody of the parent or Indian custodian or has improperly retained custody after a visit or other temporary relinquishment of custody, the court shall decline jurisdiction over such petition and shall forthwith return the child to his parent or Indian custodian unless returning the child to his parent or custodian would subject the child to a substantial and immediate danger or threat of such danger.
(