You're company doesn't have to be right to sue you and they usually have deeper pockets. Who's to say if the work was done before or after work hours. If you worked at a network company and then at home "invented" some network device, your employer would have a good chance at winning a suit regardless of merit.