How to childproof small table intentionally away from wall?
According to your question, I assume your "childproof" means to fasten the table down so that it cannot be moved or tipped over, rather than to cover the sharp edges.

If both the table and your floor allow you to put in some fasteners, the simple solution would be use a corner brace like this to fasten your table to the floor: