As long as it's used as a plug-in, and not hard-wired to the house wiring, as long as it's sturdy enough to resist handling and foot traffic, and as long as it's adequately voltage-rated, it won't be dangerous.
As far as code goes, it's not approved for line-voltage use.
Larry
www.fineelectricco.com