If you have the ability to change the locks, then you can. The rest of the facts are pretty immaterial.
1 lawyer agreed with this answer
That would depend on the precise statute of which you are convicted. The main statute for injury to a child, under circumstances or conditions likely to produce great bodily harm or death, carries a 1 year minimum penalty, up to 10 years. I would strongly suggest you speak with your attorney, however, as I believe you can avoid the minimum sentence through a suspended sentence, or otherwise.