Depends on your country - this is usually part of the right you may or may not have to reverse engineer a product for adaptation/interoperability purposes, as well of the right you may or may not have to maintain "performance" of a product you own
Of course, in a so-called free country nobody is guilty of a crime until 1- charged 2- arrested 3- tried 4- convicted, soooo...