The act of jailbreaking a Firestick is legal since it's your personal property. However, apps that you use after jailbreaking it might be illegal, so research them carefully.