Jailbreaking iPhones and iPads are not illegal. However, it is considered an unsafe procedure due to various reasons.