You won't get in trouble but it's still illegal. The only way to watch anime online legally is if the producers upload it to the website like crunchyroll, some videos on YouTube,or the animes offical website. On the other hand same is the story for manga. Scans are illegal because they are uploaded without permission.What is free anime online?
You can watch Anime for free on the following sites: Crunchyroll 9anime AnimeDao Gogoanime Anime Planet Soul Anime Side Real Anime Take